brw: Rename remap_non_header_patch_values to remap_patch_values

See rationale in the previous patch.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38482>
This commit is contained in:
Kenneth Graunke 2025-11-05 22:18:18 -08:00 committed by Marge Bot
parent 2b51963b8c
commit 4dc6413de8

View file

@ -401,7 +401,7 @@ remap_patch_urb_offsets_instr(nir_builder *b, nir_intrinsic_instr *intrin, void
}
static bool
remap_non_header_patch_urb_offsets(nir_shader *nir, const struct intel_vue_map *vue_map)
remap_patch_urb_offsets(nir_shader *nir, const struct intel_vue_map *vue_map)
{
return nir_shader_intrinsics_pass(nir, remap_patch_urb_offsets_instr,
nir_metadata_control_flow, (void *)vue_map);
@ -674,10 +674,10 @@ brw_nir_lower_tes_inputs(nir_shader *nir,
NIR_PASS(_, nir, remap_tess_levels, devinfo,
nir->info.tess._primitive_mode);
NIR_PASS(_, nir, remap_non_header_patch_urb_offsets, vue_map);
NIR_PASS(_, nir, remap_patch_urb_offsets, vue_map);
/* remap_non_header_patch_urb_offsets can add constant math into the
* shader, just fold it for the backend.
/* remap_patch_urb_offsets can add constant math into the shader,
* just fold it for the backend.
*/
NIR_PASS(_, nir, nir_opt_algebraic);
NIR_PASS(_, nir, nir_opt_constant_folding);
@ -958,10 +958,10 @@ brw_nir_lower_tcs_outputs(nir_shader *nir,
NIR_PASS(_, nir, nir_io_add_const_offset_to_base, nir_var_shader_out);
NIR_PASS(_, nir, remap_tess_levels, devinfo, tes_primitive_mode);
NIR_PASS(_, nir, remap_non_header_patch_urb_offsets, vue_map);
NIR_PASS(_, nir, remap_patch_urb_offsets, vue_map);
/* remap_non_header_patch_urb_offsets can add constant math into the
* shader, just fold it for the backend.
/* remap_patch_urb_offsets can add constant math into the shader,
* just fold it for the backend.
*/
NIR_PASS(_, nir, nir_opt_constant_folding);
NIR_PASS(_, nir, nir_io_add_const_offset_to_base, nir_var_shader_out);