From 00606b7dffe3e3042fa06a2431c9e43e8793b00e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Fri, 21 Jul 2017 22:29:12 +0200 Subject: [PATCH] libs/vkd3d: Fix logic for choosing compute-only queue family index. --- libs/vkd3d/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index 1b430eae..a43a4202 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -410,7 +410,8 @@ static HRESULT vkd3d_create_vk_device(struct d3d12_device *device) direct_queue_family_index = i; if (queue_properties[i].queueFlags & VK_QUEUE_TRANSFER_BIT) copy_queue_family_index = i; - if ((queue_properties[i].queueFlags & VK_QUEUE_COMPUTE_BIT) == VK_QUEUE_COMPUTE_BIT) + if ((queue_properties[i].queueFlags & (VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT)) + == VK_QUEUE_COMPUTE_BIT) compute_queue_family_index = i; } vkd3d_free(queue_properties);