summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2015-07-21 14:04:11 -0700
committerJordan Justen <[email protected]>2015-12-09 23:50:38 -0800
commit66eaef7737b317cc74381afcfa2335b5e0200b54 (patch)
tree8ed49a53f46ca16866a53db4310850d297b977ca /src
parentc43a7e605e1aaf07f1f8e2f2e8147b48aed8ccc4 (diff)
glsl: Don't lower_variable_index_to_cond_assign for shared variables
Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/lower_variable_index_to_cond_assign.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/lower_variable_index_to_cond_assign.cpp b/src/glsl/lower_variable_index_to_cond_assign.cpp
index 1ab3afecc7e..a1ba9345e32 100644
--- a/src/glsl/lower_variable_index_to_cond_assign.cpp
+++ b/src/glsl/lower_variable_index_to_cond_assign.cpp
@@ -378,6 +378,9 @@ public:
case ir_var_shader_storage:
return this->lower_uniforms;
+ case ir_var_shader_shared:
+ return false;
+
case ir_var_function_in:
case ir_var_const_in:
return this->lower_temps;