diff options
Diffstat (limited to 'src/gallium/drivers/freedreno/a5xx/fd5_screen.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a5xx/fd5_screen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_screen.c b/src/gallium/drivers/freedreno/a5xx/fd5_screen.c index 96f83ed3340..2816c361549 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_screen.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_screen.c @@ -73,6 +73,11 @@ fd5_screen_is_format_supported(struct pipe_screen *pscreen, PIPE_BIND_SHARED); } + /* For ARB_framebuffer_no_attachments: */ + if ((usage & PIPE_BIND_RENDER_TARGET) && (format == PIPE_FORMAT_NONE)) { + retval |= usage & PIPE_BIND_RENDER_TARGET; + } + if ((usage & PIPE_BIND_DEPTH_STENCIL) && (fd5_pipe2depth(format) != (enum a5xx_depth_format)~0) && (fd5_pipe2tex(format) != (enum a5xx_tex_fmt)~0)) { |