[Mesa-dev] [PATCH v2] glsl: fix 'shared' layout qualifier related regressions
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Thu Nov 12 07:42:34 PST 2015
Commit 8b28b35 added 'shared' as a keyword for compute shaders
but it broke the existing 'shared' layout qualifier support for
uniform and shader storage blocks.
This patch fixes 578 dEQP-GLES31.functional.ssbo.* tests.
v2:
- Move SHARED to interface_block_layout_qualifier (Timothy)
- Don't remove "shared" case insensitive check (Timothy)
- Remove the clearing of shared_storage flag (Timothy)
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
---
src/glsl/glsl_parser.yy | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index 4ac8e45..5379875 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -1640,6 +1640,11 @@ interface_block_layout_qualifier:
memset(& $$, 0, sizeof($$));
$$.flags.q.packed = 1;
}
+ | SHARED
+ {
+ memset(& $$, 0, sizeof($$));
+ $$.flags.q.shared = 1;
+ }
;
subroutine_qualifier:
--
2.5.0
More information about the mesa-dev
mailing list