From: Rob Clark Date: Mon, 26 Feb 2018 18:38:22 +0000 (-0500) Subject: freedreno/a5xx: handle compute resources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7af35a7f3b4237f8be2fc89ae22b57116ac3024;p=mesa.git freedreno/a5xx: handle compute resources Not *entirely* sure why this is a different BIND bit, but it is. Signed-off-by: Rob Clark --- 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: */