softpipe: fix bugs in POT texture sampling when texture is not square
authorroot <root@nostromo.localnet.net>
Wed, 23 Sep 2009 02:14:05 +0000 (20:14 -0600)
committerroot <root@nostromo.localnet.net>
Wed, 23 Sep 2009 02:14:10 +0000 (20:14 -0600)
commit75276ea316610a5737f2115326482024aa09d02a
treee1c8e28b4f15d3db42b5a465fd34d7d63a6d696c
parent5dbedf3d7e99efe35fad308d382670e44cd60e25
softpipe: fix bugs in POT texture sampling when texture is not square

Before, if level was greater than the logbase2(base size) we were
doing a negative bit shift and winding up with garbage values.
src/gallium/drivers/softpipe/sp_tex_sample.c