Module: Mesa Branch: main Commit: 3eadb3f5b0e35a64487db5dc2a5f9a19a165e8bc URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3eadb3f5b0e35a64487db5dc2a5f9a19a165e8bc
Author: Tapani Pälli <[email protected]> Date: Thu Nov 10 18:25:15 2022 +0200 iris: remove dg2 condition for Wa_22011440098 We need same workaround for MTL. Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19636> --- src/gallium/drivers/iris/iris_state.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 8857973e26e..201e976aa9d 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -980,18 +980,17 @@ iris_alloc_push_constants(struct iris_batch *batch) } #if GFX_VERx10 == 125 - /* Wa_22011440098 + /* DG2: Wa_22011440098 + * MTL: Wa_18022330953 * * In 3D mode, after programming push constant alloc command immediately * program push constant command(ZERO length) without any commit between * them. */ - if (intel_device_info_is_dg2(devinfo)) { - iris_emit_cmd(batch, GENX(3DSTATE_CONSTANT_ALL), c) { - /* Update empty push constants for all stages (bitmask = 11111b) */ - c.ShaderUpdateEnable = 0x1f; - c.MOCS = iris_mocs(NULL, &batch->screen->isl_dev, 0); - } + iris_emit_cmd(batch, GENX(3DSTATE_CONSTANT_ALL), c) { + /* Update empty push constants for all stages (bitmask = 11111b) */ + c.ShaderUpdateEnable = 0x1f; + c.MOCS = iris_mocs(NULL, &batch->screen->isl_dev, 0); } #endif }
