From d7af35a7f3b4237f8be2fc89ae22b57116ac3024 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 26 Feb 2018 13:38:22 -0500 Subject: freedreno/a5xx: handle compute resources Not *entirely* sure why this is a different BIND bit, but it is. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a5xx/fd5_screen.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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: */ -- cgit v1.2.3