r600g: truncate point sampled texture coordinates
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 1 Mar 2011 02:52:19 +0000 (21:52 -0500)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 1 Mar 2011 03:01:59 +0000 (22:01 -0500)
commit1dc204d145dc8c0b19473a7814c201a8954b6274
treeddd4b0e77d37cb420945cff2f1644d0d572f9297
parent6c324777a685d28d0a81d23157e4863240552999
r600g: truncate point sampled texture coordinates

By default the hardware rounds texcoords.  However,
for point sampled textures, the expected behavior is
to truncate.  When we have point sampled textures,
set the truncate bit in the sampler.

Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=25871

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c