mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[dxvk] Use compute queue for transfers if DMA queue is not available
Affects RADV. Let's see if this works and does anything for performance.
This commit is contained in:
parent
d999d0a15c
commit
68be040f4a
@ -88,12 +88,19 @@ namespace dxvk {
|
||||
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT,
|
||||
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT);
|
||||
|
||||
uint32_t computeQueue = findQueueFamily(
|
||||
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT,
|
||||
VK_QUEUE_COMPUTE_BIT);
|
||||
|
||||
if (computeQueue == VK_QUEUE_FAMILY_IGNORED)
|
||||
computeQueue = graphicsQueue;
|
||||
|
||||
uint32_t transferQueue = findQueueFamily(
|
||||
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT,
|
||||
VK_QUEUE_TRANSFER_BIT);
|
||||
|
||||
if (transferQueue == VK_QUEUE_FAMILY_IGNORED)
|
||||
transferQueue = graphicsQueue;
|
||||
transferQueue = computeQueue;
|
||||
|
||||
DxvkAdapterQueueIndices queues;
|
||||
queues.graphics = graphicsQueue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user