summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ast.h
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-02-14 14:45:04 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-03-05 19:07:00 +1100
commit78d3098c05cfbf5c51cf92483d1f894a41e46e7c (patch)
tree5a5aee785842aa2491032893238d0f33261b8247 /src/compiler/glsl/ast.h
parentd244986bf20aedf5ef6a156ec97d33f485993323 (diff)
downloadexternal_mesa3d-78d3098c05cfbf5c51cf92483d1f894a41e46e7c.zip
external_mesa3d-78d3098c05cfbf5c51cf92483d1f894a41e46e7c.tar.gz
external_mesa3d-78d3098c05cfbf5c51cf92483d1f894a41e46e7c.tar.bz2
glsl: rework parsing of blocks
Previously interface blocks were giving the global default flags of uniform blocks. This meant we could not check for invalid qualifiers on interface blocks because they always contained invalid flags. This changes parsing so that interface blocks now get an empty set of layouts. Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Diffstat (limited to 'src/compiler/glsl/ast.h')
-rw-r--r--src/compiler/glsl/ast.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/glsl/ast.h b/src/compiler/glsl/ast.h
index 9aa5bb9..4dc9674 100644
--- a/src/compiler/glsl/ast.h
+++ b/src/compiler/glsl/ast.h
@@ -1061,10 +1061,9 @@ public:
class ast_interface_block : public ast_node {
public:
- ast_interface_block(ast_type_qualifier layout,
- const char *instance_name,
+ ast_interface_block(const char *instance_name,
ast_array_specifier *array_specifier)
- : layout(layout), block_name(NULL), instance_name(instance_name),
+ : block_name(NULL), instance_name(instance_name),
array_specifier(array_specifier)
{
}