From 79796e0db4257d601ba31a2df8b8b807787f9595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Thu, 5 Feb 2026 10:10:18 +0200 Subject: [PATCH] anv: 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 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14204 Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin (cherry picked from commit 9aaed82543e1ce9450143e353bb362f37ed517da) Part-of: --- .pick_status.json | 2 +- src/intel/vulkan/genX_init_state.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index f477c25028a..a984198927a 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1114,7 +1114,7 @@ "description": "anv: 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/intel/vulkan/genX_init_state.c b/src/intel/vulkan/genX_init_state.c index ff08ea811f4..a6239211b29 100644 --- a/src/intel/vulkan/genX_init_state.c +++ b/src/intel/vulkan/genX_init_state.c @@ -625,6 +625,17 @@ init_render_queue_state(struct anv_queue *queue, bool is_companion_rcs_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. + */ + anv_batch_write_reg(batch, GENX(CHICKEN_RASTER_2), reg) { + reg.DisableAnyMCTRresponsefix = false; + reg.DisableAnyMCTRresponsefixMask = true; + } +#endif + /* Set the "CONSTANT_BUFFER Address Offset Disable" bit, so * 3DSTATE_CONSTANT_XS buffer 0 is an absolute address. *