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:
@@ -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++) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user