Module: Mesa Branch: main Commit: 8ffc4bd31cf8ccb3558a2b14bfac52e97f7b7d7c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ffc4bd31cf8ccb3558a2b14bfac52e97f7b7d7c
Author: Tapani Pälli <[email protected]> Date: Wed Oct 11 15:21:47 2023 +0300 iris: add required PC for Wa_14014966230 Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25671> --- src/gallium/drivers/iris/iris_state.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index b7c194ab96e..f5776151920 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -9042,6 +9042,17 @@ iris_emit_raw_pipe_control(struct iris_batch *batch, flags |= PIPE_CONTROL_DEPTH_STALL; } + /* Wa_14014966230: For COMPUTE Workload - Any PIPE_CONTROL command with + * POST_SYNC Operation Enabled MUST be preceded by a PIPE_CONTROL + * with CS_STALL Bit set (with No POST_SYNC ENABLED) + */ + if (intel_device_info_is_adln(devinfo) && + IS_COMPUTE_PIPELINE(batch) && + flags_to_post_sync_op(flags) != NoWrite) { + iris_emit_raw_pipe_control(batch, "Wa_14014966230", + PIPE_CONTROL_CS_STALL, NULL, 0, 0); + } + /* Emit --------------------------------------------------------------- */ if (INTEL_DEBUG(DEBUG_PIPE_CONTROL)) {
