From 26523bedecb585e7839a120d8ba216dcccdc28bb Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 9 Dec 2025 03:22:11 -0800 Subject: [PATCH] brw: Call nir_opt_offsets for mesh shaders Most stages call this as part of brw_nir_postprocess_opts() but mesh lowers to URB intrinsics after that since it needs bit-sizes lowered. Reviewed-by: Alyssa Rosenzweig Part-of: --- src/intel/compiler/brw/brw_compile_mesh.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/compiler/brw/brw_compile_mesh.cpp b/src/intel/compiler/brw/brw_compile_mesh.cpp index 7e5ff696bea..cf885f68e4e 100644 --- a/src/intel/compiler/brw/brw_compile_mesh.cpp +++ b/src/intel/compiler/brw/brw_compile_mesh.cpp @@ -1050,6 +1050,8 @@ brw_compile_mesh(const struct brw_compiler *compiler, .per_primitive_byte_offsets = prog_data->map.per_primitive_offsets, }; NIR_PASS(_, nir, brw_nir_lower_outputs_to_urb_intrinsics, &cb_data); + struct nir_opt_offsets_options offset_options = {}; + NIR_PASS(_, nir, nir_opt_offsets, &offset_options); brw_simd_selection_state simd_state{ .devinfo = compiler->devinfo,