Make sure BDA capture/replay bit is enabled

This commit is contained in:
baldurk committed 2021-01-13 10:42:46 +00:00
1 parent 76b62ba841
commit a3007ffa05
2 files changed
+16 -1

No files matched your search

@@ -2995,7 +2995,19 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi
(VkPhysicalDeviceBufferDeviceAddressFeaturesEXT *)FindNextStruct(
&createInfo, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT);
if(!existingKHR && !existingEXT)
if(existingKHR)
{
if(existingKHR->bufferDeviceAddress)
existingKHR->bufferDeviceAddressCaptureReplay = VK_TRUE;
existingKHR->bufferDeviceAddress = VK_TRUE;
}
else if(existingEXT)
{
if(existingEXT->bufferDeviceAddress)
existingEXT->bufferDeviceAddressCaptureReplay = VK_TRUE;
existingEXT->bufferDeviceAddress = VK_TRUE;
}
else
{
// don't add a new VkPhysicalDeviceVulkan12Features to the pNext chain because if we do
// we have to remove any components etc. Instead just add the individual
@@ -135,6 +135,9 @@ void main()
if(!bufaddrFeatures.bufferDeviceAddress)
Avail = "Buffer device address feature 'bufferDeviceAddress' not available";
bufaddrFeatures.bufferDeviceAddressCaptureReplay = 0;
bufaddrFeatures.bufferDeviceAddressMultiDevice = 0;
devInfoNext = &bufaddrFeatures;
}