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

Author: Eric Anholt <[email protected]>
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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to