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.
2211696 i965: Support GL_CLAMP natively on Broadwell.
src/mesa/drivers/dri/i965/brw_defines.h | 1 +
src/mesa/drivers/dri/i965/brw_wm.c | 3 ++-
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c | 13 ++++++++++---
3 files changed, 13 insertions(+), 4 deletions(-)
Upstream: cgit.freedesktop.org