From bb9fef071efe92038afe4bed19987412d30c5e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Thu, 5 Feb 2026 10:12:37 +0200 Subject: [PATCH] iris: set DisableAnyMCTRresponsefix to zero on init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is to make sure early culling related Wa_16020518922 is enabled properly. Cc: mesa-stable Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin (cherry picked from commit 331238e44e473aaa9f4658cb30a9f6d88237fffa) Part-of: --- .pick_status.json | 2 +- src/gallium/drivers/iris/iris_state.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index a60f6776352..0181eecef43 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2594,7 +2594,7 @@ "description": "iris: set DisableAnyMCTRresponsefix to zero on init", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 03fb6f0be5e..cbaaf26b396 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1424,6 +1424,17 @@ iris_init_render_context(struct iris_batch *batch) }; #endif +#if GFX_VERx10 >= 300 +/* Set value explicitly on init to override possible wrong setting. This bit + * default changed from Xe2 to Xe3 and is required to be zero for + * Wa_16020518922 as mentioned in bspec 55893. + */ + iris_emit_reg(batch, GENX(CHICKEN_RASTER_2), reg) { + reg.DisableAnyMCTRresponsefix = false; + reg.DisableAnyMCTRresponsefixMask = true; + }; +#endif + #if GFX_VER >= 20 iris_emit_cmd(batch, GENX(3DSTATE_3D_MODE), p) { p.DX10OGLBorderModeforYCRCB = true;