summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_constant_folding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/opt_constant_folding.cpp')
-rw-r--r--src/glsl/opt_constant_folding.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/opt_constant_folding.cpp b/src/glsl/opt_constant_folding.cpp
index 7d94d481c9f..072fefe9ab8 100644
--- a/src/glsl/opt_constant_folding.cpp
+++ b/src/glsl/opt_constant_folding.cpp
@@ -127,7 +127,8 @@ ir_constant_folding_visitor::visit_enter(ir_call *ir)
ir_rvalue *param_rval = (ir_rvalue *)iter.get();
ir_variable *sig_param = (ir_variable *)sig_iter.get();
- if (sig_param->mode == ir_var_in || sig_param->mode == ir_var_const_in) {
+ if (sig_param->mode == ir_var_function_in
+ || sig_param->mode == ir_var_const_in) {
ir_rvalue *new_param = param_rval;
handle_rvalue(&new_param);