summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_texture.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-05-12 11:53:51 +0200
committerSamuel Pitoiset <[email protected]>2017-06-14 10:04:36 +0200
commit6f96bd731819c77d4e899adfc2321eeaace80384 (patch)
treef110e120ecb0ce502f1854dc0c132ae194f96833 /src/mesa/state_tracker/st_texture.h
parent32b4aa34999c756e82d69472c67dbdd01e1f4fb0 (diff)
st/mesa: add st_convert_image_from_unit() helper
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r--src/mesa/state_tracker/st_texture.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index cd6a73c7703..4bfec0bed27 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -268,6 +268,11 @@ st_convert_image(const struct st_context *st, const struct gl_image_unit *u,
struct pipe_image_view *img);
void
+st_convert_image_from_unit(const struct st_context *st,
+ struct pipe_image_view *img,
+ GLuint imgUnit);
+
+void
st_convert_sampler(const struct st_context *st,
const struct gl_texture_object *texobj,
const struct gl_sampler_object *msamp,