diff options
author | Kenneth Graunke <[email protected]> | 2016-06-01 19:27:02 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-08-30 22:09:36 -0700 |
commit | d82f8d9772813949d0f5455cd0edad9003be0fb0 (patch) | |
tree | 7d0b6d08ff752cc9e60ed97491ddeaf378c0a01b /src/compiler/glsl/glsl_parser.yy | |
parent | a0b1260fe0577e504c8ef31c07e13025324af8f8 (diff) |
glsl: Handle patch qualifier on interface blocks.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_parser.yy')
-rw-r--r-- | src/compiler/glsl/glsl_parser.yy | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_parser.yy b/src/compiler/glsl/glsl_parser.yy index 3f35b2f8e33..9e1fd9e3e67 100644 --- a/src/compiler/glsl/glsl_parser.yy +++ b/src/compiler/glsl/glsl_parser.yy @@ -2758,6 +2758,17 @@ interface_qualifier: memset(& $$, 0, sizeof($$)); $$.flags.q.buffer = 1; } + | auxiliary_storage_qualifier interface_qualifier + { + if (!$1.flags.q.patch) { + _mesa_glsl_error(&@1, state, "invalid interface qualifier"); + } + if ($2.has_auxiliary_storage()) { + _mesa_glsl_error(&@1, state, "duplicate patch qualifier"); + } + $$ = $2; + $$.flags.q.patch = 1; + } ; instance_name_opt: |