From 5ae93b282eea74c786295a89557d2147a8b3c105 Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Sat, 19 Nov 2022 00:12:42 +0900 Subject: [PATCH] Fix uninitialized VkPhysicalDeviceGroupProperties pPhysicalDeviceGroupProperties must be a valid pointer to an array of pPhysicalDeviceGroupCount VkPhysicalDeviceGroupProperties structures, so the caller is responsible for initializing the base fields. Fix crash with gfxreconstruct. --- src/refresh/vkpt/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/refresh/vkpt/main.c b/src/refresh/vkpt/main.c index fc4678db5..c6b19544e 100644 --- a/src/refresh/vkpt/main.c +++ b/src/refresh/vkpt/main.c @@ -931,6 +931,8 @@ init_vulkan() VkDeviceGroupDeviceCreateInfo device_group_create_info; VkPhysicalDeviceGroupProperties device_group_info; + device_group_info.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES; + device_group_info.pNext = NULL; if(num_device_groups > 0) { // we always use the first group