nir: rename nir_lower_clip_cull_distance_arrays -> nir_lower_clip_cull_distance_array_vars

Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35760>
This commit is contained in:
Marek Olšák 2025-06-25 18:59:37 -04:00 committed by Marge Bot
parent adb17a8609
commit 3713e2d580
9 changed files with 12 additions and 12 deletions

View file

@ -487,7 +487,7 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_shader_st
NIR_PASS(_, nir, nir_propagate_invariant, pdev->cache_key.invariant_geom);
NIR_PASS(_, nir, nir_lower_clip_cull_distance_arrays);
NIR_PASS(_, nir, nir_lower_clip_cull_distance_array_vars);
if (nir->info.stage == MESA_SHADER_VERTEX || nir->info.stage == MESA_SHADER_TESS_EVAL ||
nir->info.stage == MESA_SHADER_GEOMETRY)

View file

@ -1436,7 +1436,7 @@ prelink_lowering(const struct gl_constants *consts,
*/
if (!(nir->options->io_options &
nir_io_separate_clip_cull_distance_arrays))
NIR_PASS(_, nir, nir_lower_clip_cull_distance_arrays);
NIR_PASS(_, nir, nir_lower_clip_cull_distance_array_vars);
}
return true;

View file

@ -153,7 +153,7 @@ else
'nir_lower_cl_images.c',
'nir_lower_clamp_color_outputs.c',
'nir_lower_clip.c',
'nir_lower_clip_cull_distance_arrays.c',
'nir_lower_clip_cull_distance_array_vars.c',
'nir_lower_clip_disable.c',
'nir_lower_clip_halfz.c',
'nir_lower_const_arrays_to_uniforms.c',

View file

@ -5778,7 +5778,7 @@ bool nir_lower_clip_fs(nir_shader *shader, unsigned ucp_enables,
bool use_clipdist_array, bool use_load_interp);
bool nir_lower_clip_cull_distance_to_vec4s(nir_shader *shader);
bool nir_lower_clip_cull_distance_arrays(nir_shader *nir);
bool nir_lower_clip_cull_distance_array_vars(nir_shader *nir);
bool nir_lower_clip_disable(nir_shader *shader, unsigned clip_plane_enable);
bool nir_lower_point_size_mov(nir_shader *shader,

View file

@ -28,7 +28,7 @@
/**
* This file contains two different lowering passes.
*
* 1. nir_lower_clip_cull_distance_arrays()
* 1. nir_lower_clip_cull_distance_array_vars()
*
* This pass combines clip and cull distance arrays in separate locations
* and colocates them both in VARYING_SLOT_CLIP_DIST0. It does so by
@ -495,7 +495,7 @@ combine_clip_cull(nir_shader *nir,
}
bool
nir_lower_clip_cull_distance_arrays(nir_shader *nir)
nir_lower_clip_cull_distance_array_vars(nir_shader *nir)
{
bool progress = false;

View file

@ -207,7 +207,7 @@ typedef enum {
* Whether clip and cull distance arrays should be separate. If this is not
* set, cull distances will be moved into VARYING_SLOT_CLIP_DISTn after clip
* distances, and shader_info::clip_distance_array_size will be the index
* of the first cull distance. nir_lower_clip_cull_distance_arrays does
* of the first cull distance. nir_lower_clip_cull_distance_array_vars does
* that.
*/
nir_io_separate_clip_cull_distance_arrays = BITFIELD_BIT(18),

View file

@ -930,9 +930,9 @@ struct dxil_nir_split_clip_cull_distance_params {
*
* This pass can deal with splitting across two axes:
* 1. Given { float clip[5]; float cull[3]; }, split clip into clip[4] and clip1[1]. This is
* what's produced by nir_lower_clip_cull_distance_arrays.
* what's produced by nir_lower_clip_cull_distance_array_vars.
* 2. Given { float clip[4]; float clipcull[4]; }, split clipcull into clip1[1] and cull[3].
* This is what's produced by the sequence of nir_lower_clip_cull_distance_arrays, then
* This is what's produced by the sequence of nir_lower_clip_cull_distance_array_vars, then
* I/O lowering, vectorization, optimization, and I/O un-lowering.
*/
static bool
@ -957,7 +957,7 @@ dxil_nir_split_clip_cull_distance_instr(nir_builder *b,
nir_variable *new_var = params->new_var[new_var_idx];
/* The location should only be inside clip distance, because clip
* and cull should've been merged by nir_lower_clip_cull_distance_arrays()
* and cull should've been merged by nir_lower_clip_cull_distance_array_vars()
*/
assert(var->data.location == VARYING_SLOT_CLIP_DIST0 ||
var->data.location == VARYING_SLOT_CLIP_DIST1);

View file

@ -1020,7 +1020,7 @@ dxil_spirv_nir_passes(nir_shader *nir,
NIR_PASS_V(nir, dxil_nir_lower_int_cubemaps, false);
NIR_PASS_V(nir, nir_lower_clip_cull_distance_arrays);
NIR_PASS_V(nir, nir_lower_clip_cull_distance_array_vars);
NIR_PASS_V(nir, nir_lower_io_to_temporaries, nir_shader_get_entrypoint(nir), true, true);
NIR_PASS_V(nir, nir_lower_global_vars_to_local);
NIR_PASS_V(nir, nir_split_var_copies);

View file

@ -196,7 +196,7 @@ vk_spirv_to_nir(struct vk_device *device,
* insert dead clip/cull vars and we don't want to clip/cull based on
* uninitialized garbage.
*/
NIR_PASS(_, nir, nir_lower_clip_cull_distance_arrays);
NIR_PASS(_, nir, nir_lower_clip_cull_distance_array_vars);
if (nir->info.stage == MESA_SHADER_VERTEX ||
nir->info.stage == MESA_SHADER_TESS_EVAL ||