diff options
-rw-r--r-- | src/compiler/nir/nir_lower_constant_initializers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_lower_constant_initializers.c b/src/compiler/nir/nir_lower_constant_initializers.c index cbee59b1f30..959d1eabfca 100644 --- a/src/compiler/nir/nir_lower_constant_initializers.c +++ b/src/compiler/nir/nir_lower_constant_initializers.c @@ -104,10 +104,10 @@ nir_lower_constant_initializers(nir_shader *shader, nir_variable_mode modes) impl_progress |= lower_const_initializer(&builder, &shader->outputs); if ((modes & nir_var_private) && function->is_entrypoint) - impl_progress |= lower_const_initializer(&builder, &shader->outputs); + impl_progress |= lower_const_initializer(&builder, &shader->globals); if ((modes & nir_var_system_value) && function->is_entrypoint) - impl_progress |= lower_const_initializer(&builder, &shader->outputs); + impl_progress |= lower_const_initializer(&builder, &shader->system_values); if (modes & nir_var_function) impl_progress |= lower_const_initializer(&builder, &function->impl->locals); |