From 2878af74dd3629aaa292de75f7d12f153ab1ad86 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 15 Nov 2017 09:56:38 -0500 Subject: freedreno/a5xx: ARB_framebuffer_no_attachments support Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_gmem.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/drivers/freedreno/freedreno_gmem.c') diff --git a/src/gallium/drivers/freedreno/freedreno_gmem.c b/src/gallium/drivers/freedreno/freedreno_gmem.c index 9c534c4f26e..fef76733abf 100644 --- a/src/gallium/drivers/freedreno/freedreno_gmem.c +++ b/src/gallium/drivers/freedreno/freedreno_gmem.c @@ -397,6 +397,11 @@ fd_gmem_render_tiles(struct fd_batch *batch) } else if (!(fd_mesa_debug & FD_DBG_NOBYPASS)) { sysmem = true; } + + /* For ARB_framebuffer_no_attachments: */ + if ((pfb->nr_cbufs == 0) && !pfb->zsbuf) { + sysmem = true; + } } fd_reset_wfi(batch); -- cgit v1.2.3