Skip to content

Commit

Permalink
[dxvk] Use compute queue for transfers if DMA queue is not available
Browse files Browse the repository at this point in the history
Affects RADV. Let's see if this works and does anything for performance.
  • Loading branch information
doitsujin committed May 5, 2020
1 parent d999d0a commit 68be040
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/dxvk/dxvk_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 68be040

Please sign in to comment.