diff options
author | Rob Clark <[email protected]> | 2018-02-26 13:38:22 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-03-05 08:05:33 -0500 |
commit | d7af35a7f3b4237f8be2fc89ae22b57116ac3024 (patch) | |
tree | dd6e4f89a23c9f5068d48c1f436a49629d558fe5 | |
parent | 82c71b09d55b506e1a8d2719827ff7c60e5a2846 (diff) |
freedreno/a5xx: handle compute resources
Not *entirely* sure why this is a different BIND bit, but it is.
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r-- | src/gallium/drivers/freedreno/a5xx/fd5_screen.c | 6 |
1 files 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 8feb279feaa..7d7e76e869c 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: */ |