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 <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38918>
This commit is contained in:
Kenneth Graunke 2025-12-09 03:22:11 -08:00 committed by Marge Bot
parent 88d46605bd
commit 26523bedec

View file

@ -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,