projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0be6ae7
)
mesa: emit more info in program parser error message
author
Brian Paul
<brianp@vmware.com>
Wed, 27 Apr 2011 15:23:16 +0000
(09:23 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 27 Apr 2011 17:57:04 +0000
(11:57 -0600)
src/mesa/program/program_parse.y
patch
|
blob
|
history
diff --git
a/src/mesa/program/program_parse.y
b/src/mesa/program/program_parse.y
index 85c783dd637c50ab27b9dbf835a29dfff7db95d4..dbf5abaa6177c6ee968a79d32c2e4bf8a681a152 100644
(file)
--- 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;