From 6ba07d564cf2bde4ea3b7db5ae68407020cf6964 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 4 Nov 2022 10:45:04 +0000 Subject: [PATCH] a/vk: If global priority is not available, only allow medium queues --- src/xrt/auxiliary/vk/vk_bundle_init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c index a102485f7..344b6f63f 100644 --- a/src/xrt/auxiliary/vk/vk_bundle_init.c +++ b/src/xrt/auxiliary/vk/vk_bundle_init.c @@ -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 {