i965/fs: Implement GL_CLAMP behavior on texture rectangles on gen6+.
authorEric Anholt <eric@anholt.net>
Sat, 4 Feb 2012 13:05:46 +0000 (14:05 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 8 Feb 2012 00:03:30 +0000 (16:03 -0800)
commit7c857a6b159debf76d4661f494fd2c97d205b5b1
treee5c3be368ddcaec9156382cd107e52e517ec9608
parent07e621c52329cd17b97051a26493626228d043b9
i965/fs: Implement GL_CLAMP behavior on texture rectangles on gen6+.

We were doing saturate-based clamping on the [0,width] or [0,height]
coordinate, which meant only the first pixel was addressable.

Fixes piglit ARB_texture_rectangle/texwrap-RECT-bordercolor

NOTE: This is a candidate for the 8.0 release branch.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp