mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
a/vk: If global priority is not available, only allow medium queues
This commit is contained in:
parent
379bf36860
commit
6ba07d564c
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue