gallivm: more linear tex wrap mode calculation simplification
authorRoland Scheidegger <sroland@vmware.com>
Fri, 8 Oct 2010 19:06:04 +0000 (21:06 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 8 Oct 2010 22:36:38 +0000 (00:36 +0200)
commit318bb080b04c961141a962d440d0e1296f8adda6
treee019cb68cd74f19d5fc1f011a51bc6682126b21f
parent99ade19e6e0dc9f5a4507bdcd7fb9704ca6c1df5
gallivm: more linear tex wrap mode calculation simplification

Rearrange order of operations a bit to make some clamps easier.
All calculations should be equivalent.
Note there seems to be some inconsistency in the clamp to edge case
wrt normalized/non-normalized coords, could potentially simplify this too.
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c