mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +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);
|
filter_device_features(vk, vk->physical_device, optional_device_features, &device_features);
|
||||||
vk->features.timeline_semaphore = device_features.timeline_semaphore;
|
vk->features.timeline_semaphore = device_features.timeline_semaphore;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Queue
|
* 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) {
|
if (only_compute) {
|
||||||
ret = find_compute_queue_family(vk, &vk->queue_family_index);
|
ret = find_compute_queue_family(vk, &vk->queue_family_index);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue