Mesa (main): zink: fully zero surface creation struct
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 19 00:50:52 UTC 2021
Module: Mesa
Branch: main
Commit: e66558985a9e85393ff844f8a16e85b4cf812f0e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e66558985a9e85393ff844f8a16e85b4cf812f0e
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Oct 18 10:40:12 2021 -0400
zink: fully zero surface creation struct
gotta get those holes for caching
cc: mesa-stable
Reviewed-by: Hoe Hao Cheng <haochengho12907 at gmail.com>
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13410>
---
src/gallium/drivers/zink/zink_surface.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/zink/zink_surface.c b/src/gallium/drivers/zink/zink_surface.c
index 44e0c11344a..08dc0057ffa 100644
--- a/src/gallium/drivers/zink/zink_surface.c
+++ b/src/gallium/drivers/zink/zink_surface.c
@@ -37,7 +37,9 @@ create_ivci(struct zink_screen *screen,
const struct pipe_surface *templ,
enum pipe_texture_target target)
{
- VkImageViewCreateInfo ivci = {0};
+ VkImageViewCreateInfo ivci;
+ /* zero holes since this is hashed */
+ memset(&ivci, 0, sizeof(VkImageViewCreateInfo));
ivci.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
ivci.image = res->obj->image;
More information about the mesa-commit
mailing list