nir: rename nir_lower_io_to_scalar_early -> nir_lower_io_vars_to_scalar
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35760>
This commit is contained in:
@@ -61,7 +61,7 @@ bool radv_nir_lower_viewport_to_zero(nir_shader *nir);
|
||||
|
||||
bool radv_nir_export_multiview(nir_shader *nir);
|
||||
|
||||
void radv_nir_lower_io_to_scalar_early(nir_shader *nir, nir_variable_mode mask);
|
||||
void radv_nir_lower_io_vars_to_scalar(nir_shader *nir, nir_variable_mode mask);
|
||||
|
||||
unsigned radv_map_io_driver_location(unsigned semantic);
|
||||
|
||||
|
||||
@@ -22,11 +22,11 @@ type_size_vec4(const struct glsl_type *type, bool bindless)
|
||||
}
|
||||
|
||||
void
|
||||
radv_nir_lower_io_to_scalar_early(nir_shader *nir, nir_variable_mode mask)
|
||||
radv_nir_lower_io_vars_to_scalar(nir_shader *nir, nir_variable_mode mask)
|
||||
{
|
||||
bool progress = false;
|
||||
|
||||
NIR_PASS(progress, nir, nir_lower_io_to_scalar_early, mask);
|
||||
NIR_PASS(progress, nir, nir_lower_io_vars_to_scalar, mask);
|
||||
if (progress) {
|
||||
/* Optimize the new vector code and then remove dead vars */
|
||||
NIR_PASS(_, nir, nir_copy_prop);
|
||||
|
||||
Reference in New Issue
Block a user