From edd5b3126d891fe31c2f445b2d3cd89f368ab818 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 25 Feb 2019 10:15:29 -0500 Subject: freedreno/a6xx: fix ssbo alignment Fixes a bunch of deqp ssbo tests that use multiple ssbo blocks packed into a single buffer. Note the a5xx value seems suspicious, but this is what blob seems to advertise. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index d9918f45c37..5b107b87ba8 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -279,7 +279,8 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) return is_ir3(screen) ? 140 : 120; case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT: - if (is_a5xx(screen) || is_a6xx(screen)) + if (is_a6xx(screen)) return 64; + if (is_a5xx(screen)) return 4; return 4; return 0; -- cgit v1.2.3