diff options
| author | spxtr <spxtr@google.com> | 2017-09-04 14:35:53 -0700 |
|---|---|---|
| committer | spxtr <spxtr@google.com> | 2017-09-05 12:00:09 -0700 |
| commit | a5be5a3a765207b55b16661cc182e5c5bbbf55de (patch) | |
| tree | d8a7dd39939664568511eeda007908ea5b4eb570 /Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp | |
| parent | 3e47baa40cb86945f4c1bcc43112a67c2cd96b48 (diff) | |
Vulkan: Use a separate queue for presenting.
Before this change, we simply fail if the device does not expose one
queue family that supports both graphics and present. Currently this is
fine, since devices tend to lay out their queues in this way. NV, for
instance, tends to have one queue family for all graphics operations and
one more for transfer only. However, it's not a hard requirement, and it
is cheap to use a separate queue, so we might as well.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp index 19ebbf3cb7..350757194e 100644 --- a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp +++ b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp @@ -352,7 +352,7 @@ void CommandBufferManager::SubmitCommandBuffer(size_t index, VkSemaphore wait_se &present_image_index, nullptr}; - res = vkQueuePresentKHR(g_vulkan_context->GetGraphicsQueue(), &present_info); + res = vkQueuePresentKHR(g_vulkan_context->GetPresentQueue(), &present_info); if (res != VK_SUCCESS && res != VK_ERROR_OUT_OF_DATE_KHR && res != VK_SUBOPTIMAL_KHR) LOG_VULKAN_ERROR(res, "vkQueuePresentKHR failed: "); } |
