From 96b739b44961329be4111af710bdd16c35afd459 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 4 Nov 2025 19:56:34 -0800 Subject: [PATCH] elk: Disable IO semantic validation when remapping patch offsets Marek disabled this for brw in 2f6b4803abe6d2d76b474d46670d68849cbfd21f but elk also needs the fix. Fixes issues in shader-db/open-subdiv/7 on crocus targeting Haswell. Part-of: --- src/intel/compiler/elk/elk_nir.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/intel/compiler/elk/elk_nir.c b/src/intel/compiler/elk/elk_nir.c index fb430cae6d3..15cb25543e0 100644 --- a/src/intel/compiler/elk/elk_nir.c +++ b/src/intel/compiler/elk/elk_nir.c @@ -227,6 +227,13 @@ remap_patch_urb_offsets(nir_block *block, nir_builder *b, offset->ssa); nir_src_rewrite(offset, total_offset); + + /* Putting an address into offset_src requires that NIR + * validation of IO intrinsics is disabled. + */ + nir_io_semantics io_sem = nir_intrinsic_io_semantics(intrin); + io_sem.no_validate = 1; + nir_intrinsic_set_io_semantics(intrin, io_sem); } } }