tgsi: initialize Atomic field in tgsi_default_declaration
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 Jan 2016 08:44:22 +0000 (03:44 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 Jan 2016 21:37:04 +0000 (16:37 -0500)
Spotted by Coverity.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_build.c

index ea207461d27c95bbc7475d5241efaff0bda946c2..83f50628b407bc58ad4a9b4c209615bcc5f56bbf 100644 (file)
@@ -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;