gallivm: fix indirect addressing of inputs
authorRoland Scheidegger <sroland@vmware.com>
Wed, 6 Nov 2013 14:40:25 +0000 (15:40 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 6 Nov 2013 17:20:54 +0000 (18:20 +0100)
commitb35ea0934933885b45348fb861d5ad9b8c284910
tree78438f0b2985439d895c470721cf9d1cd7caab87
parent08556073d1fae993be4a30e34065af55efd1e0cd
gallivm: fix indirect addressing of inputs

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 element.
(Copied straight from the same fix for temps.)
While here fix up a couple of broken comments in the fetch functions,
plus don't name a straight float type float4 which is just confusing.

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