libs/vkd3d: Fix logic for choosing compute-only queue family index.

This commit is contained in:
Józef Kucia 2017-07-21 22:29:12 +02:00
parent 23fa2ca599
commit 00606b7dff

View File

@ -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);