mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Make sure we get a queue which also supports compute.
Graphics + Compute queue must be supported.
This commit is contained in:
parent
fa449646e9
commit
111c37832a
@ -915,7 +915,8 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
|
||||
|
||||
for (i = 0; i < queue_count; i++)
|
||||
{
|
||||
if (queue_properties[i].queueFlags & VK_QUEUE_GRAPHICS_BIT)
|
||||
VkQueueFlags required = VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT;
|
||||
if ((queue_properties[i].queueFlags & required) == required)
|
||||
{
|
||||
vk->context.graphics_queue_index = i;
|
||||
RARCH_LOG("[Vulkan]: Device supports %u sub-queues.\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user