[Mesa-dev] [PATCH 4/9] meta/blit: Silence unused parameter warning

Jason Ekstrand jason at jlekstrand.net
Fri Jun 16 22:58:51 UTC 2017


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Fri, Jun 16, 2017 at 2:01 PM, Ian Romanick <idr at freedesktop.org> wrote:

> From: Ian Romanick <ian.d.romanick at intel.com>
>
> drivers/common/meta_blit.c: In function ‘setup_glsl_msaa_blit_scaled_
> shader’:
> drivers/common/meta_blit.c:62:58: warning: unused parameter ‘filter’
> [-Wunused-parameter]
>                                     GLenum target, GLenum filter)
>                                                           ^~~~~~
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  src/mesa/drivers/common/meta_blit.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/common/meta_blit.c
> b/src/mesa/drivers/common/meta_blit.c
> index e8719a3..7adad46 100644
> --- a/src/mesa/drivers/common/meta_blit.c
> +++ b/src/mesa/drivers/common/meta_blit.c
> @@ -59,7 +59,7 @@ static void
>  setup_glsl_msaa_blit_scaled_shader(struct gl_context *ctx,
>                                     struct blit_state *blit,
>                                     struct gl_renderbuffer *src_rb,
> -                                   GLenum target, GLenum filter)
> +                                   GLenum target)
>  {
>     GLint loc_src_width, loc_src_height;
>     int i, samples;
> @@ -581,7 +581,7 @@ setup_glsl_blit_framebuffer(struct gl_context *ctx,
>                                     2, texcoord_size, 0);
>
>     if (is_target_multisample && is_filter_scaled_resolve &&
> is_scaled_blit) {
> -      setup_glsl_msaa_blit_scaled_shader(ctx, blit, src_rb, target,
> filter);
> +      setup_glsl_msaa_blit_scaled_shader(ctx, blit, src_rb, target);
>     } else if (is_target_multisample) {
>        setup_glsl_msaa_blit_shader(ctx, blit, drawFb, src_rb, target);
>     } else {
> --
> 2.9.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170616/41476c94/attachment.html>


More information about the mesa-dev mailing list