diff options
Diffstat (limited to 'src/gallium/tests/graw/gs-test.c')
-rw-r--r-- | src/gallium/tests/graw/gs-test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/tests/graw/gs-test.c b/src/gallium/tests/graw/gs-test.c index 00fb59161a8..46042c68a26 100644 --- a/src/gallium/tests/graw/gs-test.c +++ b/src/gallium/tests/graw/gs-test.c @@ -150,6 +150,7 @@ static void init_fs_constbuf( void ) { struct pipe_resource templat; + memset(&templat, 0, sizeof(templat)); templat.target = PIPE_BUFFER; templat.format = PIPE_FORMAT_R8_UNORM; templat.width0 = sizeof(constants1); @@ -383,6 +384,7 @@ static void init_tex( void ) tex2d[1][1][3] = 255; #endif + memset(&templat, 0, sizeof(templat)); templat.target = PIPE_TEXTURE_2D; templat.format = PIPE_FORMAT_B8G8R8A8_UNORM; templat.width0 = SIZE; @@ -492,6 +494,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; |