[Mesa-dev] [PATCH] radeonsi: Ensure fmask_format is initialized in release builds.

Marek Olšák maraeo at gmail.com
Sun Aug 18 03:36:13 PDT 2013


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sun, Aug 18, 2013 at 12:51 AM, Vinson Lee <vlee at freedesktop.org> wrote:
> Fixes "Uninitialized scalar variable" defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/gallium/drivers/radeonsi/si_state.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
> index 06c349d..6410e45 100644
> --- a/src/gallium/drivers/radeonsi/si_state.c
> +++ b/src/gallium/drivers/radeonsi/si_state.c
> @@ -2728,6 +2728,7 @@ static struct pipe_sampler_view *si_create_sampler_view(struct pipe_context *ctx
>                         break;
>                 default:
>                         assert(0);
> +                       fmask_format = V_008F14_IMG_DATA_FORMAT_INVALID;
>                 }
>
>                 view->fmask_state[0] = va >> 8;
> --
> 1.8.3.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