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

Author: Rob Clark <robdcl...@gmail.com>
Date:   Mon Feb 26 13:38:22 2018 -0500

freedreno/a5xx: handle compute resources

Not *entirely* sure why this is a different BIND bit, but it is.

Signed-off-by: Rob Clark <robdcl...@gmail.com>

---

 src/gallium/drivers/freedreno/a5xx/fd5_screen.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_screen.c 
b/src/gallium/drivers/freedreno/a5xx/fd5_screen.c
index 8feb279fea..7d7e76e869 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_screen.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_screen.c
@@ -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: */

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to