mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
a45a881534
commit
ab3e1809b6
1 changed files with 2 additions and 1 deletions
|
|
@ -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)++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue