From: Jason Ekstrand Date: Sat, 31 Aug 2019 04:57:52 +0000 (-0500) Subject: blorp: Memset surface info to zero when initializing it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a90b1cbe73f8d842c04813755b34a4db4d03b7b9;p=mesa.git 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 Reviewed-by: Lionel Landwerlin --- 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));