Vulkan: Select graphics queue with compute capabilities.

There might be cases that the graphics queue and compute
queue are separated, but that would be something that we
will solve in the future.
This commit is contained in:
Jeroen Bakker 2023-02-03 10:15:47 +01:00
parent a45a881534
commit ab3e1809b6
1 changed files with 2 additions and 1 deletions

View File

@ -520,7 +520,8 @@ static GHOST_TSuccess getGraphicQueueFamily(VkPhysicalDevice device, uint32_t *r
*r_queue_index = 0;
for (const auto &queue_family : queue_families) {
if (queue_family.queueFlags & VK_QUEUE_GRAPHICS_BIT) {
if ((queue_family.queueFlags & VK_QUEUE_GRAPHICS_BIT) &&
(queue_family.queueFlags & VK_QUEUE_COMPUTE_BIT)) {
return GHOST_kSuccess;
}
(*r_queue_index)++;