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.
This commit is contained in:
baldurk
2018-08-03 10:24:33 +01:00
parent 7061830f52
commit 9774c9be9b
@@ -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