blorp: Memset surface info to zero when initializing it
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 31 Aug 2019 04:57:52 +0000 (23:57 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 6 Sep 2019 23:35:09 +0000 (23:35 +0000)
This isn't known to fix any current bugs but it does prevent a
regression in a subsequent commit.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/blorp/blorp.c

index 498457572dbfbbf6c52eaf7c5f9547734f050d7a..935a0f5c77280ce229d6efcb47ff8d98e92b3383 100644 (file)
@@ -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));