From a9d7b47613c405ebe3e147fb4a157168cbe7fdbd Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Wed, 15 Jun 2022 16:59:39 +0200 Subject: [PATCH] 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: --- 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