[Mesa-dev] [PATCH] st/mesa: make st_texture_get_sampler_view() static

Nicolai Hähnle nhaehnle at gmail.com
Mon Jan 30 10:04:08 UTC 2017


On 27.01.2017 14:34, Samuel Pitoiset wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

> ---
>  src/mesa/state_tracker/st_sampler_view.c | 2 +-
>  src/mesa/state_tracker/st_sampler_view.h | 4 ----
>  2 files changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_sampler_view.c b/src/mesa/state_tracker/st_sampler_view.c
> index 88d5d1aae2..c78a987486 100644
> --- a/src/mesa/state_tracker/st_sampler_view.c
> +++ b/src/mesa/state_tracker/st_sampler_view.c
> @@ -46,7 +46,7 @@
>   * If none is found an empty slot is initialized with a
>   * template and returned instead.
>   */
> -struct pipe_sampler_view **
> +static struct pipe_sampler_view **
>  st_texture_get_sampler_view(struct st_context *st,
>                              struct st_texture_object *stObj)
>  {
> diff --git a/src/mesa/state_tracker/st_sampler_view.h b/src/mesa/state_tracker/st_sampler_view.h
> index d4c38bccdc..6825cebdf6 100644
> --- a/src/mesa/state_tracker/st_sampler_view.h
> +++ b/src/mesa/state_tracker/st_sampler_view.h
> @@ -57,10 +57,6 @@ st_create_texture_sampler_view(struct pipe_context *pipe,
>  }
>
>
> -extern struct pipe_sampler_view **
> -st_texture_get_sampler_view(struct st_context *st,
> -                            struct st_texture_object *stObj);
> -
>  extern void
>  st_texture_release_sampler_view(struct st_context *st,
>                                  struct st_texture_object *stObj);
>



More information about the mesa-dev mailing list