a/vk: If global priority is not available, only allow medium queues

This commit is contained in:
Jakob Bornecrantz 2022-11-04 10:45:04 +00:00
parent 379bf36860
commit 6ba07d564c

View file

@ -959,10 +959,18 @@ vk_create_device(struct vk_bundle *vk,
filter_device_features(vk, vk->physical_device, optional_device_features, &device_features);
vk->features.timeline_semaphore = device_features.timeline_semaphore;
/*
* Queue
*/
// If we don't have global priority, only allow medium priority queues.
if (!vk->has_EXT_global_priority && //
!vk->has_KHR_global_priority && //
global_priority != VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_EXT) {
return VK_ERROR_NOT_PERMITTED_EXT;
}
if (only_compute) {
ret = find_compute_queue_family(vk, &vk->queue_family_index);
} else {