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/freedreno_gmem.c | |
parent | 8d48671492412e04c18651a779cabacf30ed0afe (diff) |
freedreno/a5xx: ARB_framebuffer_no_attachments support
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_gmem.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_gmem.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |