summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/opt_function_inlining.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/opt_function_inlining.cpp')
-rw-r--r--src/compiler/glsl/opt_function_inlining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/opt_function_inlining.cpp b/src/compiler/glsl/opt_function_inlining.cpp
index 62c1f4b6fc2..78a726b2cc9 100644
--- a/src/compiler/glsl/opt_function_inlining.cpp
+++ b/src/compiler/glsl/opt_function_inlining.cpp
@@ -164,7 +164,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
parameters[i] = NULL;
} else {
parameters[i] = sig_param->clone(ctx, ht);
- parameters[i]->data.mode = ir_var_auto;
+ parameters[i]->data.mode = ir_var_temporary;
/* Remove the read-only decoration because we're going to write
* directly to this variable. If the cloned variable is left