Mesa (main): tu: Add missing WFI to the 3d GMEM store path

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 16 01:32:51 UTC 2022


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

Author: Connor Abbott <cwabbott0 at gmail.com>
Date:   Wed Jun 15 16:59:39 2022 +0200

tu: Add missing WFI to the 3d GMEM store path

Similar to the 2d path.

Fixes: b157a5d ("tu: Implement non-aligned multisample GMEM STORE_OP_STORE")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17058>

---

 src/freedreno/vulkan/tu_clear_blit.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/freedreno/vulkan/tu_clear_blit.c b/src/freedreno/vulkan/tu_clear_blit.c
index 375b8f93e23..76824417f38 100644
--- a/src/freedreno/vulkan/tu_clear_blit.c
+++ b/src/freedreno/vulkan/tu_clear_blit.c
@@ -3031,6 +3031,9 @@ store_3d_blit(struct tu_cmd_buffer *cmd,
    /* sync GMEM writes with CACHE. */
    tu6_emit_event_write(cmd, cs, CACHE_INVALIDATE);
 
+   /* Wait for CACHE_INVALIDATE to land */
+   tu_cs_emit_wfi(cs);
+
    r3d_run(cmd, cs);
 
    /* Draws write to the CCU, unlike CP_EVENT_WRITE::BLIT which writes to



More information about the mesa-commit mailing list