gallivm: deduplicate some indirect register address code
authorRoland Scheidegger <sroland@vmware.com>
Wed, 6 Nov 2013 19:35:51 +0000 (20:35 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 8 Nov 2013 02:38:32 +0000 (03:38 +0100)
commitea1f7d289430ec4815bf0b3398d0815a310c2aa3
tree6ab4f126027d8e5d94b0725ddc98350607b146f3
parent8c5330226f391a7a29b6538851090b0ef730a239
gallivm: deduplicate some indirect register address code

There's only one minor functional change, for immediates the pixel offsets
are no longer added since the values are all the same for all elements in
any case (it might be better if those weren't stored as soa vectors in the
first place maybe).

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