freedreno: Drop UNIFORM_BUFFER_OFFSET_ALIGNMENT to 32
authorEric Anholt <eric@anholt.net>
Thu, 20 Aug 2020 23:43:16 +0000 (16:43 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Aug 2020 23:23:05 +0000 (23:23 +0000)
This is the value exposed by the a3xx-a4xx drivers according to an
official Adreno OpenGL ES Developer guide I found, and also a report I saw
for a5xx while googling.  Fixes renderdoc replay of a manhattan31 trace
captured on a Pixel 3a.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6416>

src/gallium/drivers/freedreno/freedreno_screen.c

index f7c8cf9e04e9c035bd3055d2f2c82460573dba5f..90704de8cd745f365fe3fb8af2103d0fa45bb279 100644 (file)
@@ -298,7 +298,7 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
                return is_a4xx(screen);
 
        case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
-               return 64;
+               return is_a2xx(screen) ? 64 : 32;
 
        case PIPE_CAP_GLSL_FEATURE_LEVEL:
        case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY: