st/mesa: add st_convert_sampler()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Apr 2017 22:44:00 +0000 (00:44 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Apr 2017 19:42:01 +0000 (21:42 +0200)
commita18ff34452f8427d6d61764e00cb679a4840cd75
treee2084eb5c41f936ba0dab2daae03eb0c8bb8fc94
parentca41ecf83841ae14615e0945395facef89b2110c
st/mesa: add st_convert_sampler()

Similar to st_convert_image(), will be useful for bindless. While
we are at it, rename convert_sampler() to convert_sampler_from_unit()
and make 'st' a const argument.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atom_sampler.c
src/mesa/state_tracker/st_texture.h