Mesa (master): blorp: Memset surface info to zero when initializing it
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Sep 6 23:35:38 UTC 2019
Module: Mesa
Branch: master
Commit: a90b1cbe73f8d842c04813755b34a4db4d03b7b9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a90b1cbe73f8d842c04813755b34a4db4d03b7b9
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Fri Aug 30 23:57:52 2019 -0500
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 <kenneth at whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/intel/blorp/blorp.c | 1 +
1 file changed, 1 insertion(+)
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));
More information about the mesa-commit
mailing list