mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 14:00:16 +01:00
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 <ian.d.romanick@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
ef9e6d1ec8
commit
33ddc8e865
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue