[Bf-blender-cvs] [ab3e1809b6f] master: Vulkan: Select graphics queue with compute capabilities.
Jeroen Bakker
noreply at git.blender.org
Fri Feb 3 10:17:25 CET 2023
Commit: ab3e1809b6f0adc3f02dcc2e7fa0a3bb4fc26cb6
Author: Jeroen Bakker
Date: Fri Feb 3 10:15:47 2023 +0100
Branches: master
https://developer.blender.org/rBab3e1809b6f0adc3f02dcc2e7fa0a3bb4fc26cb6
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.
===================================================================
M intern/ghost/intern/GHOST_ContextVK.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_ContextVK.cpp b/intern/ghost/intern/GHOST_ContextVK.cpp
index 3326c1a6663..4ee48243234 100644
--- a/intern/ghost/intern/GHOST_ContextVK.cpp
+++ b/intern/ghost/intern/GHOST_ContextVK.cpp
@@ -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)++;
More information about the Bf-blender-cvs
mailing list