i965/vs: Fix GPU hangs in shaders with large virtual GRFs pre-gen6.
authorEric Anholt <eric@anholt.net>
Tue, 30 Aug 2011 22:50:17 +0000 (15:50 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 7 Sep 2011 01:00:57 +0000 (18:00 -0700)
commit8adcad213ef6cbbaa9adf1485827125cc05aa033
tree688a145806438818e83bf3dcfbf5af38403e4396
parent23eec54bb0f368d9c88894b544b4af8f01cae2ae
i965/vs: Fix GPU hangs in shaders with large virtual GRFs pre-gen6.

If you get your total GRF count wrong, you write over some other
shader's g0, and the GPU fails shortly thereafter.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp