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/graw_util.h | |
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/graw_util.h')
-rw-r--r-- | src/gallium/tests/graw/graw_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/tests/graw/graw_util.h b/src/gallium/tests/graw/graw_util.h index f6033855aa0..36064e18a25 100644 --- a/src/gallium/tests/graw/graw_util.h +++ b/src/gallium/tests/graw/graw_util.h @@ -43,6 +43,7 @@ graw_util_create_window(struct graw_info *info, int i; memset(info, 0, sizeof(*info)); + memset(&resource_temp, 0, sizeof(resource_temp)); /* It's hard to say whether window or screen should be created * first. Different environments would prefer one or the other. @@ -224,6 +225,7 @@ graw_util_create_tex2d(const struct graw_info *info, struct pipe_resource temp, *tex; struct pipe_box box; + memset(&temp, 0, sizeof(temp)); temp.target = PIPE_TEXTURE_2D; temp.format = format; temp.width0 = width; |