[Mesa-dev] [PATCH] st/mesa: remove unused 'samp' function parameters
Marek Olšák
maraeo at gmail.com
Thu Jul 23 07:42:49 PDT 2015
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Thu, Jul 23, 2015 at 3:57 PM, Brian Paul <brianp at vmware.com> wrote:
> ---
> src/mesa/state_tracker/st_atom_texture.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c
> index ba3cf9b..1e31533 100644
> --- a/src/mesa/state_tracker/st_atom_texture.c
> +++ b/src/mesa/state_tracker/st_atom_texture.c
> @@ -232,7 +232,6 @@ static unsigned last_layer(struct st_texture_object *stObj)
> static struct pipe_sampler_view *
> st_create_texture_sampler_view_from_stobj(struct pipe_context *pipe,
> struct st_texture_object *stObj,
> - const struct gl_sampler_object *samp,
> enum pipe_format format)
> {
> struct pipe_sampler_view templ;
> @@ -283,7 +282,6 @@ st_create_texture_sampler_view_from_stobj(struct pipe_context *pipe,
> static struct pipe_sampler_view *
> st_get_texture_sampler_view_from_stobj(struct st_context *st,
> struct st_texture_object *stObj,
> - const struct gl_sampler_object *samp,
> enum pipe_format format)
> {
> struct pipe_sampler_view **sv;
> @@ -318,7 +316,7 @@ st_get_texture_sampler_view_from_stobj(struct st_context *st,
> }
>
> if (!*sv) {
> - *sv = st_create_texture_sampler_view_from_stobj(st->pipe, stObj, samp, format);
> + *sv = st_create_texture_sampler_view_from_stobj(st->pipe, stObj, format);
>
> } else if ((*sv)->context != st->pipe) {
> /* Recreate view in correct context, use existing view as template */
> @@ -374,8 +372,8 @@ update_single_texture(struct st_context *st,
> }
> }
>
> - *sampler_view = st_get_texture_sampler_view_from_stobj(st, stObj, samp,
> - view_format);
> + *sampler_view = st_get_texture_sampler_view_from_stobj(st, stObj,
> + view_format);
> return GL_TRUE;
> }
>
> --
> 1.9.1
>
> _______________________________________________
> 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