freedreno/a5xx: handle compute resources
authorRob Clark <robdclark@gmail.com>
Mon, 26 Feb 2018 18:38:22 +0000 (13:38 -0500)
committerRob Clark <robdclark@gmail.com>
Mon, 5 Mar 2018 13:05:33 +0000 (08:05 -0500)
Not *entirely* sure why this is a different BIND bit, but it is.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_screen.c

index 8feb279feaad9a4524f96b0d316587a0d068b353..7d7e76e869c9bbeae7224ba115564d00974bfb75 100644 (file)
@@ -67,13 +67,15 @@ fd5_screen_is_format_supported(struct pipe_screen *pscreen,
        if ((usage & (PIPE_BIND_RENDER_TARGET |
                                PIPE_BIND_DISPLAY_TARGET |
                                PIPE_BIND_SCANOUT |
-                               PIPE_BIND_SHARED)) &&
+                               PIPE_BIND_SHARED |
+                               PIPE_BIND_COMPUTE_RESOURCE)) &&
                        (fd5_pipe2color(format) != (enum a5xx_color_fmt)~0) &&
                        (fd5_pipe2tex(format) != (enum a5xx_tex_fmt)~0)) {
                retval |= usage & (PIPE_BIND_RENDER_TARGET |
                                PIPE_BIND_DISPLAY_TARGET |
                                PIPE_BIND_SCANOUT |
-                               PIPE_BIND_SHARED);
+                               PIPE_BIND_SHARED |
+                               PIPE_BIND_COMPUTE_RESOURCE);
        }
 
        /* For ARB_framebuffer_no_attachments: */