From 6f96bd731819c77d4e899adfc2321eeaace80384 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 12 May 2017 11:53:51 +0200 Subject: st/mesa: add st_convert_image_from_unit() helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- src/mesa/state_tracker/st_texture.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/state_tracker/st_texture.h') 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 @@ -267,6 +267,11 @@ void 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, -- cgit v1.2.3