summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-11-13 15:16:20 +1100
committerTimothy Arceri <[email protected]>2015-11-21 07:27:04 +1100
commit1d87d6f9ca543631b2bc30ac8d82b6a23159fb55 (patch)
tree5812ad81b9f59f078c6b0a8ef4f70f0d8237eb01 /src
parentd1f23545a1416ffa476a3685e39380701cbfc4fd (diff)
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 <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/glsl_parser.yy8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index d2d5058befe..a96b18087b8 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -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() ||