summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2023-05-05 10:39:28 -0700
committerMarge Bot <emma+marge@anholt.net>2023-05-15 17:14:20 +0000
commiteec07cdde4cba653c8ca778f41e3ef6124bbc76b (patch)
tree398abb8b3bd00ab77504a241b670836b6ab72877
parentc9146794d4acd3600613e6df7c90257fdce8de23 (diff)
downloadmesa-eec07cdde4cba653c8ca778f41e3ef6124bbc76b.tar.gz
dzn: Don't zero an output struct that can have pNext
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22879>
-rw-r--r--src/microsoft/vulkan/dzn_device.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c
index f0f30dd2f32..edf94ecc7b1 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -901,9 +901,7 @@ dzn_physical_device_get_image_format_properties(struct dzn_physical_device *pdev
const VkPhysicalDeviceExternalImageFormatInfo *external_info = NULL;
VkExternalImageFormatProperties *external_props = NULL;
- *properties = (VkImageFormatProperties2) {
- .sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2,
- };
+ properties->imageFormatProperties = (VkImageFormatProperties) { 0 };
VkImageUsageFlags usage = info->usage;