i965/vs: Fix variable indexed array access with more than one array.
authorEric Anholt <eric@anholt.net>
Wed, 7 Sep 2011 00:46:25 +0000 (17:46 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 9 Sep 2011 04:34:03 +0000 (21:34 -0700)
commit27c03cb86aa9149d001eefb3cf1e67a97f5bc886
tree66e8d087fbbd22f9e6f09a176c9bc3487aa96d92
parent6af968b6736c87c05ea579df50e23b6f23b900d4
i965/vs: Fix variable indexed array access with more than one array.

The offset to the arrays after the first was mis-scaled, so we'd go
access off the end of the surface and read 0s.  Fixes
glsl-vs-uniform-array-3.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp