Module: Mesa
Branch: master
Commit: d0684c1914e5654a49bb1b192fbfa6c85537ad5a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0684c1914e5654a49bb1b192fbfa6c85537ad5a

Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Dec 23 15:36:50 2020 -0500

zink: zero VkMemoryRequirements on init

ensure no part of this is uninitialized just to be safe

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8217>

---

 src/gallium/drivers/zink/zink_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_resource.c 
b/src/gallium/drivers/zink/zink_resource.c
index 047a6c920db..30a93a0a93d 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -108,7 +108,7 @@ resource_create(struct pipe_screen *pscreen,
    pipe_reference_init(&res->base.reference, 1);
    res->base.screen = pscreen;
 
-   VkMemoryRequirements reqs;
+   VkMemoryRequirements reqs = {};
    VkMemoryPropertyFlags flags = 0;
 
    res->internal_format = templ->format;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to