mesa: lower GL_CLAMP in texture and sampler functions instead of st/mesa
authorMarek Olšák <marek.olsak@amd.com>
Mon, 7 Jun 2021 11:34:45 +0000 (07:34 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 27 Jun 2021 14:28:39 +0000 (10:28 -0400)
commitfb586a8e3c7259d94f06fb764ac25310e54d3e5a
tree4f9a1a4167ee959e06e960bf177ecf3386bac364
parent8403e068d42bc08239258d6c6193a2565f56c39d
mesa: lower GL_CLAMP in texture and sampler functions instead of st/mesa

This moves the GL_CLAMP translation out of st/mesa.
This should be faster assuming constant sampler states.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11339>
src/mesa/main/samplerobj.c
src/mesa/main/samplerobj.h
src/mesa/main/texparam.c
src/mesa/state_tracker/st_atom_sampler.c