diff options
author | Brian Paul <[email protected]> | 2011-04-27 09:23:16 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-04-27 11:57:04 -0600 |
commit | f3c92c2323b1a00e592a2bae739c420a52d4285b (patch) | |
tree | 862387f3676665c2ebfe1523d2e767e617e5c520 /src/mesa/program/program_parse.y | |
parent | 0be6ae74e9a56e84df088392ef3b09229508404f (diff) |
mesa: emit more info in program parser error message
Diffstat (limited to 'src/mesa/program/program_parse.y')
-rw-r--r-- | src/mesa/program/program_parse.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/program/program_parse.y b/src/mesa/program/program_parse.y index 85c783dd637..dbf5abaa617 100644 --- a/src/mesa/program/program_parse.y +++ b/src/mesa/program/program_parse.y @@ -1258,7 +1258,11 @@ optArraySize: | INTEGER { if (($1 < 1) || ((unsigned) $1 > state->limits->MaxParameters)) { - yyerror(& @1, state, "invalid parameter array size"); + char msg[100]; + _mesa_snprintf(msg, sizeof(msg), + "invalid parameter array size (size=%d max=%u)", + $1, state->limits->MaxParameters); + yyerror(& @1, state, msg); YYERROR; } else { $$ = $1; |