gallivm/soa: implement indirect addressing in immediates
authorZack Rusin <zackr@vmware.com>
Tue, 7 May 2013 19:59:56 +0000 (15:59 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 14 May 2013 07:09:15 +0000 (03:09 -0400)
commit386327c48f88b052449afa4f41b1090d3fdb5ce9
tree1e1df0a34ca44aae3223b6219394c4d38e7158c2
parent2866525b86db1aa90f1016161e75c7975364cc99
gallivm/soa: implement indirect addressing in immediates

The support is analogous to the way we handle indirect addressing
in temporaries, except that we don't have to worry about storing
(after declarations) and thus we'll able to keep using the old
code when indirect addressing isn't used. In other words we're
still using constants directly, unless the instruction has
immediate register with indirect addressing.

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