summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2015-07-28 15:00:47 -0700
committerJordan Justen <jordan.l.justen@intel.com>2015-11-06 14:00:52 -0800
commit36ebd4fd4468cdafb22a9e4e8a9116afd1e1920a (patch)
treee8b121e66e83cacfaf25fda443fe21b6b3852289
parent1072b2271878f10352b024e2dbddbfe30ef4c3bc (diff)
glsl: Use shared storage variable type for shared variablescs-parse-shared-vars-v1
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r--src/glsl/ast_to_hir.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index dd5ba4e732..4ef770fd12 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -2790,6 +2790,8 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
var->data.mode = ir_var_uniform;
else if (qual->flags.q.buffer)
var->data.mode = ir_var_shader_storage;
+ else if (qual->flags.q.shared)
+ var->data.mode = ir_var_shader_shared;
if (!is_parameter && is_varying_var(var, state->stage)) {
/* User-defined ins/outs are not permitted in compute shaders. */