i965: Support GL_CLAMP natively on Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 29 May 2014 06:31:48 +0000 (23:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 5 Jun 2014 08:26:05 +0000 (01:26 -0700)
commit221169693bf1dfdaf46dddc1df318cee992237aa
tree26c17e0f0d2f436f8dc8c46775372d5907636622
parent7f3d64a77b9ca6d738f67c7a3dd4499cdf817d79
i965: Support GL_CLAMP natively on Broadwell.

The new hardware actually supports this OpenGL 1.x feature natively,
so we can finally drop our shader workarounds.

Not many applications use GL_CLAMP, and most use it unintentionally, but
it's trivial to do right, so we should.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c