From 91ec17835f7923add522e01d486bc89683dfe881 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 13 Feb 2012 14:49:08 -0700 Subject: [PATCH] st/mesa: remove unused st_get_texture_sampler_view() Reviewed-by: Jose Fonseca --- src/mesa/state_tracker/st_texture.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h index 3d2a6369cfb..b5c22ee370a 100644 --- a/src/mesa/state_tracker/st_texture.h +++ b/src/mesa/state_tracker/st_texture.h @@ -147,22 +147,6 @@ st_create_texture_sampler_view_format(struct pipe_context *pipe, } -static INLINE struct pipe_sampler_view * -st_get_texture_sampler_view(struct st_texture_object *stObj, - struct pipe_context *pipe) -{ - if (!stObj || !stObj->pt) { - return NULL; - } - - if (!stObj->sampler_view) { - stObj->sampler_view = st_create_texture_sampler_view(pipe, stObj->pt); - } - - return stObj->sampler_view; -} - - extern struct pipe_resource * st_texture_create(struct st_context *st, enum pipe_texture_target target, -- 2.30.2