[Mesa-dev] [PATCH] meta/msaa-blit: consider weird sample count case unreachable

Anuj Phogat anuj.phogat at gmail.com
Mon Oct 13 12:43:20 PDT 2014


On Sat, Oct 11, 2014 at 3:28 PM, Chris Forbes <chrisf at ijw.co.nz> wrote:
> Suppresses a bunch of warning noise about sample_map possibly being used
> uninitialized.
>
> Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
> ---
>  src/mesa/drivers/common/meta_blit.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
> index c6616d9..01cb532 100644
> --- a/src/mesa/drivers/common/meta_blit.c
> +++ b/src/mesa/drivers/common/meta_blit.c
> @@ -134,6 +134,7 @@ setup_glsl_msaa_blit_scaled_shader(struct gl_context *ctx,
>        break;
>     default:
>        _mesa_problem(ctx, "Unsupported sample count %d\n", samples);
> +      unreachable("Unsupported sample count");
>     }
>
>     /* Create sample map string. */
> --
> 2.1.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the mesa-dev mailing list