From bce4f11dbcf2c1afc91109d2e46f3b5eeb54fc2e Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Wed, 10 Apr 2019 13:59:10 -0400 Subject: [PATCH] freedreno: a2xx: disable PIPE_CAP_PACKED_UNIFORMS a2xx driver is currently broken when PIPE_CAP_PACKED_UNIFORMS is enabled, disable it for now. Signed-off-by: Jonathan Marek Reviewed-by: Kristian H. Kristensen Reviewed-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index 40dc16f82cd..1eebefd085e 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -195,9 +195,11 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_MIXED_COLOR_DEPTH_BITS: case PIPE_CAP_TEXTURE_BARRIER: case PIPE_CAP_INVALIDATE_BUFFER: - case PIPE_CAP_PACKED_UNIFORMS: return 1; + case PIPE_CAP_PACKED_UNIFORMS: + return !is_a2xx(screen); + case PIPE_CAP_VERTEXID_NOBASE: return is_a3xx(screen) || is_a4xx(screen); -- 2.30.2