From: Connor Abbott Date: Fri, 24 Jul 2020 13:22:37 +0000 (+0200) Subject: tu: Add missing wfi to tu6_emit_hw() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52ec35f5a6373f8eb06963bd1a573302d7e67e6e;p=mesa.git tu: Add missing wfi to tu6_emit_hw() It needs to be there before changing CCU state. This was accidentally deleted in f494799a7f09deebacb5696fde7514e3329de246 when it should've been moved. Part-of: --- diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index 43e3c78386b..dafa9e6a9dc 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -740,6 +740,11 @@ tu6_init_hw(struct tu_cmd_buffer *cmd, struct tu_cs *cs) .gfx_bindless = 0x1f, .cs_bindless = 0x1f)); + tu_cs_emit_wfi(cs); + + cmd->state.cache.pending_flush_bits &= + ~(TU_CMD_FLAG_WAIT_FOR_IDLE | TU_CMD_FLAG_CACHE_INVALIDATE); + tu_cs_emit_regs(cs, A6XX_RB_CCU_CNTL(.offset = phys_dev->ccu_offset_bypass)); cmd->state.ccu_state = TU_CMD_CCU_SYSMEM;