Module: Mesa Branch: master Commit: fb3da129d1086df21122f032dd64d4b1c480cb70 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb3da129d1086df21122f032dd64d4b1c480cb70
Author: Jordan Justen <[email protected]> Date: Tue Jul 28 15:00:47 2015 -0700 glsl: Use shared storage variable type for shared variables Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> --- src/glsl/ast_to_hir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index a8eaecc..6f5f3c1 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. */ _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
