[Mesa-dev] [PATCH 3/5] st/mesa: remove unused st_get_texture_sampler_view()
Jose Fonseca
jfonseca at vmware.com
Tue Feb 14 06:56:35 PST 2012
Seems sensible thing to do. views are per context while texture objects are shared, so stObj->sampler_view is definetely evil.
Jose
----- Original Message -----
> ---
> src/mesa/state_tracker/st_texture.h | 16 ----------------
> 1 files changed, 0 insertions(+), 16 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_texture.h
> b/src/mesa/state_tracker/st_texture.h
> index 3d2a636..b5c22ee 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,
> --
> 1.7.3.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list