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

Ilia Mirkin imirkin at alum.mit.edu
Sun Jan 17 00:46:31 PST 2016


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



More information about the mesa-dev mailing list