diff options
author | Rob Clark <[email protected]> | 2016-10-07 11:58:16 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-10-07 15:50:46 -0400 |
commit | 495ba8884ad5047abc7e408b68165c0465a81ac0 (patch) | |
tree | 0d9328470726c425d5697553b395d06fc4deb085 /src/gallium/tests/graw/vs-test.c | |
parent | 3ebfc44b4231cfa131e17076b10140fcd70ccd8c (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/vs-test.c')
-rw-r--r-- | src/gallium/tests/graw/vs-test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/tests/graw/vs-test.c b/src/gallium/tests/graw/vs-test.c index 48f06f461d8..14e63cdef52 100644 --- a/src/gallium/tests/graw/vs-test.c +++ b/src/gallium/tests/graw/vs-test.c @@ -82,6 +82,7 @@ static void init_fs_constbuf( void ) struct pipe_resource templat; struct pipe_box box; + memset(&templat, 0, sizeof(templat)); templat.target = PIPE_BUFFER; templat.format = PIPE_FORMAT_R8_UNORM; templat.width0 = sizeof(constants); @@ -281,6 +282,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; @@ -390,6 +392,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; |