diff options
author | Jason Ekstrand <[email protected]> | 2019-08-30 23:57:52 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-09-06 23:35:09 +0000 |
commit | a90b1cbe73f8d842c04813755b34a4db4d03b7b9 (patch) | |
tree | 512a0488b586672126f0dd765939e3a06899713a /src | |
parent | c15b197d74c854ffcd15f7e1ebfe63ddbe551335 (diff) |
blorp: Memset surface info to zero when initializing it
This isn't known to fix any current bugs but it does prevent a
regression in a subsequent commit.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/blorp/blorp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c index 498457572db..935a0f5c772 100644 --- a/src/intel/blorp/blorp.c +++ b/src/intel/blorp/blorp.c @@ -66,6 +66,7 @@ brw_blorp_surface_info_init(struct blorp_context *blorp, unsigned int level, unsigned int layer, enum isl_format format, bool is_render_target) { + memset(info, 0, sizeof(*info)); assert(level < surf->surf->levels); assert(layer < MAX2(surf->surf->logical_level0_px.depth >> level, surf->surf->logical_level0_px.array_len)); |