softpipe: clamp texcoords in sample_compare()
authorPhilip Taylor <excors@gmail.com>
Tue, 8 Mar 2011 01:56:51 +0000 (18:56 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 8 Mar 2011 01:56:54 +0000 (18:56 -0700)
commit0eef561a5bb10df343837d58d37d5c0d5b708243
tree60e3e92cbe6a6ee3972d082465f5d9a55da79e9a
parenta674ef7814ea16622b6002009ffe27a55cb500bf
softpipe: clamp texcoords in sample_compare()

This fixes http://bugs.freedesktop.org/show_bug.cgi?id=31159 for softpipe
and fixes the piglit depth-tex-compare test.

NOTE: This is a candidate for the 7.10 branch.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/softpipe/sp_tex_sample.c