glsl: Use shared storage variable type for shared variables
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 28 Jul 2015 22:00:47 +0000 (15:00 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 10 Nov 2015 01:21:24 +0000 (17:21 -0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/glsl/ast_to_hir.cpp

index a8eaecc54c378e265f87d478fe691698b623f7dd..6f5f3c1b245e697d998f9957eebf4541c3ffe359 100644 (file)
@@ -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. */