summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/tri-gs.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-10-07 11:58:16 -0400
committerRob Clark <[email protected]>2016-10-07 15:50:46 -0400
commit495ba8884ad5047abc7e408b68165c0465a81ac0 (patch)
tree0d9328470726c425d5697553b395d06fc4deb085 /src/gallium/tests/graw/tri-gs.c
parent3ebfc44b4231cfa131e17076b10140fcd70ccd8c (diff)
gallium: add missing zero-init for resource templates
Mostly test code, plus one spot I noticed in r600. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/tests/graw/tri-gs.c')
-rw-r--r--src/gallium/tests/graw/tri-gs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/tests/graw/tri-gs.c b/src/gallium/tests/graw/tri-gs.c
index 6aad51c94a0..6d9e41ddb3a 100644
--- a/src/gallium/tests/graw/tri-gs.c
+++ b/src/gallium/tests/graw/tri-gs.c
@@ -199,6 +199,7 @@ static void init( void )
if (ctx == NULL)
exit(3);
+ memset(&templat, 0, sizeof(templat));
templat.target = PIPE_TEXTURE_2D;
templat.format = formats[i];
templat.width0 = WIDTH;