gallivm: fix indirect addressing of constant buffer
authorBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 00:48:53 +0000 (18:48 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 00:50:35 +0000 (18:50 -0600)
commit4363d4d0b945c4ca6c303fb337e1fac39e6e1ad6
treef50ef4d47998f86d3a509760fbdd7aa6316c56e4
parentb0636f78aa63aed2a68e86e7770c2a91c80bbb80
gallivm: fix indirect addressing of constant buffer

The previous code assumed that all elements of the address register
were the same.  But it can vary from pixel to pixel or vertex to
vertex so we must use a gather operation when dynamically indexing
the constant buffer.

Still need to fix this for the temporary register file...
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c