vkd3d: Initialize vk_extensions in vk_init_device_caps().

Without LTO, gcc doesn't know that hresult_from_vk_result() will always return a
failure HRESULT for a failure VkResult, and so thinks that we might exit from
vkd3d_check_device_extensions() with a success HRESULT but without initializing
vk_extensions.
This commit is contained in:
Elizabeth Figura 2024-10-23 16:18:30 -05:00 committed by Henri Verbeet
parent 5188883142
commit a595b96f62
Notes: Henri Verbeet 2024-10-28 18:14:14 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1227

View File

@ -1696,7 +1696,7 @@ static HRESULT vkd3d_init_device_caps(struct d3d12_device *device,
VkPhysicalDeviceDescriptorIndexingFeaturesEXT *descriptor_indexing; VkPhysicalDeviceDescriptorIndexingFeaturesEXT *descriptor_indexing;
VkPhysicalDevice physical_device = device->vk_physical_device; VkPhysicalDevice physical_device = device->vk_physical_device;
struct vkd3d_vulkan_info *vulkan_info = &device->vk_info; struct vkd3d_vulkan_info *vulkan_info = &device->vk_info;
VkExtensionProperties *vk_extensions; VkExtensionProperties *vk_extensions = NULL;
VkPhysicalDeviceFeatures *features; VkPhysicalDeviceFeatures *features;
uint32_t vk_extension_count; uint32_t vk_extension_count;
HRESULT hr; HRESULT hr;