diff options
author | Brian Paul <[email protected]> | 2011-03-02 09:32:45 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-03-02 09:32:47 -0700 |
commit | 8ad821df0a2d49964141f2ea4ef8179f4edc052f (patch) | |
tree | 617653ede90f6a518c247cb7737e25f9559e1481 /src/mesa/program/program_parse.y | |
parent | 41208bf047888f5633befc5bcfac1c9132920492 (diff) |
mesa: added gl_program_constants::MaxAddressOffset
See https://bugs.freedesktop.org/show_bug.cgi?id=29418
Diffstat (limited to 'src/mesa/program/program_parse.y')
-rw-r--r-- | src/mesa/program/program_parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/program/program_parse.y b/src/mesa/program/program_parse.y index 784ea28c17a..19aa8ccdb53 100644 --- a/src/mesa/program/program_parse.y +++ b/src/mesa/program/program_parse.y @@ -935,7 +935,7 @@ addrRegRelOffset: { $$ = 0; } addrRegPosOffset: INTEGER { - if (($1 < 0) || ($1 > 4095)) { + if (($1 < 0) || ($1 > (state->limits->MaxAddressOffset - 1))) { char s[100]; _mesa_snprintf(s, sizeof(s), "relative address offset too large (%d)", $1); @@ -949,7 +949,7 @@ addrRegPosOffset: INTEGER addrRegNegOffset: INTEGER { - if (($1 < 0) || ($1 > 4096)) { + if (($1 < 0) || ($1 > state->limits->MaxAddressOffset)) { char s[100]; _mesa_snprintf(s, sizeof(s), "relative address offset too large (%d)", $1); |