mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
libs/vkd3d: Fix logic for choosing compute-only queue family index.
This commit is contained in:
parent
23fa2ca599
commit
00606b7dff
@ -410,7 +410,8 @@ static HRESULT vkd3d_create_vk_device(struct d3d12_device *device)
|
|||||||
direct_queue_family_index = i;
|
direct_queue_family_index = i;
|
||||||
if (queue_properties[i].queueFlags & VK_QUEUE_TRANSFER_BIT)
|
if (queue_properties[i].queueFlags & VK_QUEUE_TRANSFER_BIT)
|
||||||
copy_queue_family_index = i;
|
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;
|
compute_queue_family_index = i;
|
||||||
}
|
}
|
||||||
vkd3d_free(queue_properties);
|
vkd3d_free(queue_properties);
|
||||||
|
Loading…
Reference in New Issue
Block a user