Mesa (master): freedreno/a5xx: Flush depth at the end of sysmem, like a6xx does.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Mar 9 22:01:26 UTC 2021


Module: Mesa
Branch: master
Commit: dfb0e0d246ef0437eb029066c0dd48c06f62820a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dfb0e0d246ef0437eb029066c0dd48c06f62820a

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Mar  9 10:44:46 2021 -0800

freedreno/a5xx: Flush depth at the end of sysmem, like a6xx does.

On a6xx, this flush fixed some force-bypass tests.  Doesn't affect
anything in our current a5xx test set.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9481>

---

 src/gallium/drivers/freedreno/a5xx/fd5_gmem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c b/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c
index 9cb8717c836..fe93ba4c907 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c
@@ -780,6 +780,7 @@ fd5_emit_sysmem_fini(struct fd_batch *batch)
 	fd5_emit_lrz_flush(batch, ring);
 
 	fd5_event_write(batch, ring, PC_CCU_FLUSH_COLOR_TS, true);
+	fd5_event_write(batch, ring, PC_CCU_FLUSH_DEPTH_TS, true);
 }
 
 void



More information about the mesa-commit mailing list