Module: Mesa Branch: master Commit: 33ddc8e865e67f3dabcd1b598f4e978be6c7be6f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=33ddc8e865e67f3dabcd1b598f4e978be6c7be6f
Author: Ryan Houdek <[email protected]> Date: Thu Nov 5 11:03:44 2015 -0600 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]> --- 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 adf6a05..403cbd1 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) { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
