diff options
author | Rob Clark <[email protected]> | 2017-11-15 09:56:38 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-11-16 08:44:19 -0500 |
commit | 2878af74dd3629aaa292de75f7d12f153ab1ad86 (patch) | |
tree | 70365e70ee7a564b62b675c362ab52cb8c1b9479 /src/gallium/drivers/freedreno/a5xx | |
parent | 8d48671492412e04c18651a779cabacf30ed0afe (diff) |
freedreno/a5xx: ARB_framebuffer_no_attachments support
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a5xx')
-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)) { |