gallivm: fix repeat() function for NPOT textures
authorBrian Paul <brianp@vmware.com>
Sat, 25 Sep 2010 19:09:25 +0000 (13:09 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 25 Sep 2010 19:37:05 +0000 (13:37 -0600)
commit4e2f53bacb670b824593dce70668a8f92796ed93
tree951fa5b7e32fbcd81c7d725b90a84662517d6da2
parente31f0f996537046228602a251706613ca4163209
gallivm: fix repeat() function for NPOT textures

The trick of casting the coord to an unsigned value only works for POT
textures.  Add a bias instead.  This fixes a few piglit texwrap failures.
src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c