gallivm: fix indirect addressing of temps in soa mode
authorZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 02:53:07 +0000 (22:53 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 05:18:51 +0000 (01:18 -0400)
commitf9f57312de863dd058a595c69ef3f42a5d90bce5
treec33d8e4b341337aed8ab813c8fba3fe84f544082
parent3093ac6f4fe8a4e57bcc0e82adef98806ec1e0d4
gallivm: fix indirect addressing of temps in soa mode

we weren't adding the soa offsets when constructing the indices
for the gather functions. That meant that we were always returning
the data in the first vertex/primitive/pixel in the SoA structure
and not correctly fetching from all structures.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c