freedreno: a2xx: disable PIPE_CAP_PACKED_UNIFORMS
authorJonathan Marek <jonathan@marek.ca>
Wed, 10 Apr 2019 17:59:10 +0000 (13:59 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 23 Apr 2019 17:13:32 +0000 (17:13 +0000)
a2xx driver is currently broken when PIPE_CAP_PACKED_UNIFORMS is enabled,
disable it for now.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_screen.c

index 40dc16f82cdeea36fa33850839c8008ed7accad6..1eebefd085efd6deebd20bbf7a02a4597fc62e1f 100644 (file)
@@ -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);