aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2015-07-28 15:00:47 -0700
committerJordan Justen <[email protected]>2015-11-09 17:21:24 -0800
commitfb3da129d1086df21122f032dd64d4b1c480cb70 (patch)
tree7019d07102252a4be86b191e7af865c93975afa6 /src/glsl/ast_to_hir.cpp
parent32746fc9b49db5eccdc228e12cbce4734f1020f9 (diff)
glsl: Use shared storage variable type for shared variables
Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-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 a8eaecc54c3..6f5f3c1b245 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_storage)
+ 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. */