aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-01-10 11:23:04 +0000
committerJason Ekstrand <[email protected]>2019-01-10 10:51:52 -0600
commit0210243923c4a67f8596087ef20ff6b59f846282 (patch)
tree2604b9c883b1447f3937afb97a5b6c49e663bdf0
parent6c3164cd08ebecfc6a07ec21915072fadf499b12 (diff)
nir: fix copy-paste error in nir_lower_constant_initializers
Fixes: 393b59e0772e7bf0426bdf61c740752c4e09dde1 ('nir: Rework nir_lower_constant_initializers() to handle functions') Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Erik Faye-Lund <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r--src/compiler/nir/nir_lower_constant_initializers.c4
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);