diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2015-07-28 15:00:47 -0700 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2015-11-09 12:00:22 -0800 |
commit | 0575de69ac701d508bbc1e696370b44b46cbcc1c (patch) | |
tree | e2de2c1ef0414ccaf38a9f7d690e8b681243dcb7 | |
parent | dbfae994f4d0272923a59cec0704caa25c86b93b (diff) |
glsl: Use shared storage variable type for shared variablescs-parse-shared-vars-v2
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 42ccf0d2f1..ee68a44f2b 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. */ |