i965 gen6: Fix incorrect order of dwords in gen6_update_sol_indices()
authorPaul Berry <stereotype441@gmail.com>
Fri, 23 Dec 2011 21:56:07 +0000 (13:56 -0800)
committerPaul Berry <stereotype441@gmail.com>
Sat, 24 Dec 2011 17:12:27 +0000 (09:12 -0800)
commite6e9becd5016df649d3c19a3e81e85bd63b895b7
tree1d9a104bb756a5426be58a0ec2081c255ff020ab
parentb31f62c9074cb88fbb2e0b327e053778dea5b83f
i965 gen6: Fix incorrect order of dwords in gen6_update_sol_indices()

When updating SOL indices, we were accidentally putting the starting
index in dword 1 and the SVBI number to increment in dword 2--these
should be reversed.  Usually both of these values are zero, so we
didn't see any problem.  However, if a transform feedback operation
spans multiple batch buffers, the starting index will be nonzero.

Fixes piglit test "EXT_transform_feedback/intervening-read output".

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