glsl: change uniform location/offset encoding
authorBrian Paul <brianp@vmware.com>
Fri, 28 May 2010 18:52:34 +0000 (12:52 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 28 May 2010 18:52:34 +0000 (12:52 -0600)
commit5d0e136eff54a34258b5adaeda4cb267831e8234
tree272a76306a0d2d19d337220f0e034674137b5d33
parentf4bcd0cab02ae2ff2f1337288484f6761fa68ec1
glsl: change uniform location/offset encoding

This lets Mesa work like other OpenGL implementations with regard
to indexing uniform arrays.  See comments for details.

Note: this is a candidate for the 7.8 branch.
src/mesa/shader/uniforms.c