diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 29e3511844c..f4e18db5a21 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -449,12 +449,20 @@ flush_after_state_base_change(struct iris_batch *batch) * sufficient. The theory here is that all of the sampling/rendering * units cache the binding table in the texture cache. However, we have * yet to be able to actually confirm this. + * + * Wa_14013910100: + * + * "DG2 128/256/512-A/B: S/W must program STATE_BASE_ADDRESS command twice + * or program pipe control with Instruction cache invalidate post + * STATE_BASE_ADDRESS command" */ iris_emit_end_of_pipe_sync(batch, "change STATE_BASE_ADDRESS (invalidates)", PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE | PIPE_CONTROL_CONST_CACHE_INVALIDATE | - PIPE_CONTROL_STATE_CACHE_INVALIDATE); + PIPE_CONTROL_STATE_CACHE_INVALIDATE | + (GFX_VERx10 != 125 ? 0 : + PIPE_CONTROL_INSTRUCTION_INVALIDATE)); } static void diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 5c097e65c36..a74ff8229b8 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -263,11 +263,20 @@ genX(cmd_buffer_emit_state_base_address)(struct anv_cmd_buffer *cmd_buffer) * sufficient. The theory here is that all of the sampling/rendering * units cache the binding table in the texture cache. However, we have * yet to be able to actually confirm this. + * + * Wa_14013910100: + * + * "DG2 128/256/512-A/B: S/W must program STATE_BASE_ADDRESS command twice + * or program pipe control with Instruction cache invalidate post + * STATE_BASE_ADDRESS command" */ anv_batch_emit(&cmd_buffer->batch, GENX(PIPE_CONTROL), pc) { pc.TextureCacheInvalidationEnable = true; pc.ConstantCacheInvalidationEnable = true; pc.StateCacheInvalidationEnable = true; +#if GFX_VERx10 == 125 + pc.InstructionCacheInvalidateEnable = true; +#endif anv_debug_dump_pc(pc); } }