tu: Add missing WFI to the 3d GMEM store path
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 15 Jun 2022 14:59:39 +0000 (16:59 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 16 Jun 2022 01:10:24 +0000 (01:10 +0000)
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

index 375b8f9..7682441 100644 (file)
@@ -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