r300g: fix texturing with non-3D textures and wrap R mode set to sample border
authorMarek Olšák <maraeo@gmail.com>
Thu, 9 Jun 2011 02:09:40 +0000 (04:09 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 9 Jun 2011 02:19:03 +0000 (04:19 +0200)
commitda8b4c07986e202b0596b729a5eec31c9aec5fcc
treeb412be80bc42d520c21f887fc299269caa28b122
parent466ce95ddff734d5090bcb1c5ada7a4f23e13226
r300g: fix texturing with non-3D textures and wrap R mode set to sample border

If the wrap R (3rd) mode is set to CLAMP or CLAMP_TO_BORDER and the texture
isn't 3D, r300 always samples the border color regardless of texture
coordinates.

I HATE THIS HARDWARE.

NOTE: This is a candidate for the 7.10 branch.
src/gallium/drivers/r300/r300_state_derived.c