mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-26 17:31:42 +00:00
Fix the set of queues made available to initial state CONCURRENT buffers
* We don't want to enable all queues on the physical device because not all of them are necessarily enabled in the device itself.
This commit is contained in:
@@ -550,11 +550,8 @@ bool WrappedVulkan::Prepare_InitialState(WrappedVkRes *res)
|
||||
// we make the buffer concurrently accessible by all queue families to not invalidate the
|
||||
// contents of the memory we're reading back from.
|
||||
bufInfo.sharingMode = VK_SHARING_MODE_CONCURRENT;
|
||||
bufInfo.queueFamilyIndexCount = m_PhysicalDeviceData.queueCount;
|
||||
std::vector<uint32_t> queues;
|
||||
for(uint32_t i = 0; i < bufInfo.queueFamilyIndexCount; i++)
|
||||
queues.push_back(i);
|
||||
bufInfo.pQueueFamilyIndices = queues.data();
|
||||
bufInfo.queueFamilyIndexCount = (uint32_t)m_QueueFamilyIndices.size();
|
||||
bufInfo.pQueueFamilyIndices = m_QueueFamilyIndices.data();
|
||||
|
||||
// spec requires that CONCURRENT must specify more than one queue family. If there is only one
|
||||
// queue family, we can safely use exclusive.
|
||||
|
||||
Reference in New Issue
Block a user