ARB prog parser: Fix parameter array size comparison
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 20 Oct 2009 17:58:14 +0000 (10:58 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 23 Oct 2009 02:20:15 +0000 (19:20 -0700)
commitdd245016657c599ecf24c4abe999319f9c870c47
tree7316bb394e1e98137eb7ffa666e8a7d919103e5b
parent55058652b886b95bfc24109a9edb04d274c01c1a
ARB prog parser: Fix parameter array size comparison

Array indexes are invalid when >= the maximum, but array sizes are
only in valid when > the maximum.  This prevented programs from
declaring a single maximum size array.

See the piglit vp-max-array test.
src/mesa/shader/program_parse.tab.c
src/mesa/shader/program_parse.y