diff options
author | Ryan Houdek <[email protected]> | 2015-11-05 11:03:44 -0600 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-11-19 11:39:51 -0500 |
commit | 33ddc8e865e67f3dabcd1b598f4e978be6c7be6f (patch) | |
tree | f9e4e75568297f10a64c76f46507d5633580a738 /src/glsl/glsl_parser.yy | |
parent | ef9e6d1ec8389f800d22c0dd091efb30f189fa45 (diff) |
glsl: add a parse check to check for the index layout qualifier
This can only be used if EXT_blend_func_extended is enabled
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser.yy')
-rw-r--r-- | src/glsl/glsl_parser.yy | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index adf6a05acce..403cbd1564a 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -1476,6 +1476,11 @@ layout_qualifier_id: } if (match_layout_qualifier("index", $1, state) == 0) { + if (state->es_shader && !state->EXT_blend_func_extended_enable) { + _mesa_glsl_error(& @3, state, "index layout qualifier requires EXT_blend_func_extended"); + YYERROR; + } + $$.flags.q.explicit_index = 1; if ($3 >= 0) { |