glsl: remove duplicate validation for index layout qualifier

The minimum value for index is validated in apply_explicit_location()
and we want to remove validation from the parser so we can add
compile time constant support.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Timothy Arceri
2015-11-13 15:16:20 +11:00
committed by Timothy Arceri
parent d1f23545a1
commit 1d87d6f9ca
+1 -7
View File
@@ -1476,13 +1476,7 @@ layout_qualifier_id:
}
$$.flags.q.explicit_index = 1;
if ($3 >= 0) {
$$.index = $3;
} else {
_mesa_glsl_error(& @3, state, "invalid index %d specified", $3);
YYERROR;
}
$$.index = $3;
}
if ((state->has_420pack() ||