summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_screen.c
diff options
context:
space:
mode:
authorAntonio Gomes <antoniospg100@gmail.com>2023-01-06 23:52:05 -0300
committerMarge Bot <emma+marge@anholt.net>2023-03-07 18:24:56 +0000
commit010c18c4433c4d3b929dc8c9ca6002697b356c98 (patch)
tree5f1f16c714613ca5be405afe7e363a6a77b7369d /src/gallium/auxiliary/util/u_screen.c
parent7839341d8f9562486b7fcd14cdf8081a52e915a0 (diff)
gallium: Add new caps PIPE_CAP_LINEAR_IMAGE_(PITCH_ALIGNMENT|BASE_ADDRESS_ALIGNMENT)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20378>
Diffstat (limited to 'src/gallium/auxiliary/util/u_screen.c')
-rw-r--r--src/gallium/auxiliary/util/u_screen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index 8c8a66ca118..c0ed2f00ac9 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -179,6 +179,12 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
/* GL_EXT_texture_buffer minimum value. */
return 65536;
+ case PIPE_CAP_LINEAR_IMAGE_PITCH_ALIGNMENT:
+ return 0;
+
+ case PIPE_CAP_LINEAR_IMAGE_BASE_ADDRESS_ALIGNMENT:
+ return 0;
+
case PIPE_CAP_MAX_VIEWPORTS:
return 1;