Mesa (master): freedreno: Drop UNIFORM_BUFFER_OFFSET_ALIGNMENT to 32

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 24 23:39:21 UTC 2020


Module: Mesa
Branch: master
Commit: c6861b9f755e4a6b0dfe0afeaeaf8c5880e42312
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6861b9f755e4a6b0dfe0afeaeaf8c5880e42312

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Aug 20 16:43:16 2020 -0700

freedreno: Drop UNIFORM_BUFFER_OFFSET_ALIGNMENT to 32

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index f7c8cf9e04e..90704de8cd7 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -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:



More information about the mesa-commit mailing list