From 9774c9be9bd4bb1c40eaa1eda1b6a734a042d3bf Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 3 Aug 2018 10:24:33 +0100 Subject: [PATCH] Use remapped set of physical devices to create device. Closes #1062 * m_ReplayPhysicalDevices contains the physical devices enumerated on replay, which could be arbitrary and not matching etc. * m_PhysicalDevices contains the physical devices remapped in order to produce the closets match to the capture's PD in each slot, using the PDs available. --- renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp b/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp index 0f4578067..867c3bef5 100644 --- a/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp +++ b/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp @@ -969,7 +969,7 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi // see above in Serialise_vkEnumeratePhysicalDevices where this is encoded uint32_t physicalDeviceIndex = GetPhysicalDeviceIndexFromHandle(Unwrap(physicalDevice)); - physicalDevice = m_ReplayPhysicalDevices[physicalDeviceIndex]; + physicalDevice = m_PhysicalDevices[physicalDeviceIndex]; // we must make any modifications locally, so the free of pointers // in the serialised VkDeviceCreateInfo don't double-free