glsl: rework parsing of blocks
authorTimothy Arceri <timothy.arceri@collabora.com>
Sun, 14 Feb 2016 03:45:04 +0000 (14:45 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sat, 5 Mar 2016 08:07:00 +0000 (19:07 +1100)
commit78d3098c05cfbf5c51cf92483d1f894a41e46e7c
tree5a5aee785842aa2491032893238d0f33261b8247
parentd244986bf20aedf5ef6a156ec97d33f485993323
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>
src/compiler/glsl/ast.h
src/compiler/glsl/glsl_parser.yy