summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_texture.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-04-14 00:44:00 +0200
committerSamuel Pitoiset <[email protected]>2017-04-18 21:42:01 +0200
commita18ff34452f8427d6d61764e00cb679a4840cd75 (patch)
treee2084eb5c41f936ba0dab2daae03eb0c8bb8fc94 /src/mesa/state_tracker/st_texture.h
parentca41ecf83841ae14615e0945395facef89b2110c (diff)
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 <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r--src/mesa/state_tracker/st_texture.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index 44b07da10bc..1b4d1a3ea23 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -258,4 +258,10 @@ void
st_convert_image(const struct st_context *st, const struct gl_image_unit *u,
struct pipe_image_view *img);
+void
+st_convert_sampler(const struct st_context *st,
+ const struct gl_texture_object *texobj,
+ const struct gl_sampler_object *msamp,
+ struct pipe_sampler_state *sampler);
+
#endif