tgsi/sse: fix aos_to_soa() loop to handle num_inputs==0
authorBrian Paul <brianp@vmware.com>
Fri, 17 Sep 2010 01:02:42 +0000 (19:02 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Sep 2010 01:05:09 +0000 (19:05 -0600)
commit4b27c614cf4b06ad0c2a0414f60737f19eed021d
tree1791a8787899f9e2a5e552c56b3d6c4df4e9520c
parentf70f79f6f6027bdf2f7de09bb39e12a24420f338
tgsi/sse: fix aos_to_soa() loop to handle num_inputs==0

Basically, change the loop from:
  do {...} while (--num_inputs != 0)
into:
  while (num_inputs != 0) { ... --num_inputs; }

Fixes fd.o bug 29987.
src/gallium/auxiliary/tgsi/tgsi_sse2.c