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:
Marek Olšák
2025-06-25 17:45:31 -04:00
committed by Marge Bot
parent b83f618fb2
commit 439d805291
11 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -1018,7 +1018,7 @@ v3d_nir_lower_vs_early(struct v3d_compile *c)
/* Split our I/O vars and dead code eliminate the unused
* components.
*/
NIR_PASS(_, c->s, nir_lower_io_to_scalar_early,
NIR_PASS(_, c->s, nir_lower_io_vars_to_scalar,
nir_var_shader_in | nir_var_shader_out);
uint64_t used_outputs[4] = {0};
for (int i = 0; i < c->vs_key->num_used_outputs; i++) {
@@ -1060,7 +1060,7 @@ v3d_nir_lower_gs_early(struct v3d_compile *c)
/* Split our I/O vars and dead code eliminate the unused
* components.
*/
NIR_PASS(_, c->s, nir_lower_io_to_scalar_early,
NIR_PASS(_, c->s, nir_lower_io_vars_to_scalar,
nir_var_shader_in | nir_var_shader_out);
uint64_t used_outputs[4] = {0};
for (int i = 0; i < c->gs_key->num_used_outputs; i++) {
+2 -2
View File
@@ -1744,8 +1744,8 @@ link_shaders(nir_shader *producer, nir_shader *consumer)
assert(consumer);
if (producer->options->lower_to_scalar) {
NIR_PASS(_, producer, nir_lower_io_to_scalar_early, nir_var_shader_out);
NIR_PASS(_, consumer, nir_lower_io_to_scalar_early, nir_var_shader_in);
NIR_PASS(_, producer, nir_lower_io_vars_to_scalar, nir_var_shader_out);
NIR_PASS(_, consumer, nir_lower_io_vars_to_scalar, nir_var_shader_in);
}
nir_lower_io_arrays_to_elements(producer, consumer);