[Mesa-dev] [PATCH] tgsi: initialize Atomic field in tgsi_default_declaration

Marek Olšák maraeo at gmail.com
Sun Jan 17 02:22:14 PST 2016


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

On Sun, Jan 17, 2016 at 9:46 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Spotted by Coverity.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/gallium/auxiliary/tgsi/tgsi_build.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c
> index ea20746..83f5062 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_build.c
> +++ b/src/gallium/auxiliary/tgsi/tgsi_build.c
> @@ -110,6 +110,7 @@ tgsi_default_declaration( void )
>     declaration.Invariant = 0;
>     declaration.Local = 0;
>     declaration.Array = 0;
> +   declaration.Atomic = 0;
>     declaration.Padding = 0;
>
>     return declaration;
> --
> 2.4.10
>
> _______________________________________________
> 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