OpenXR-Docs icon indicating copy to clipboard operation
OpenXR-Docs copied to clipboard

Question about how `queueIndex` in `XrGraphicsBindingVulkanKHR` is interpreted.

Open yshui opened this issue 1 year ago • 3 comments

I assume after the XR runtime gets the queue index, it would want to get the VkQueue by calling vkGetDeviceQueue?

But according to the spec, for vkGetDeviceQueue:

VUID-vkGetDeviceQueue-flags-01841 VkDeviceQueueCreateInfo::flags must have been set to zero when device was created

What if the application wants to use a queue created with a non-zero flag? Doesn't seem to be a way to communicate the queue creation flag to the runtime.

yshui avatar May 01 '24 18:05 yshui

vkGetDeviceQueue2?

To get queues that were created with a non-zero flags parameter use vkGetDeviceQueue2.

from https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetDeviceQueue.html

absolutelynothelix avatar May 01 '24 22:05 absolutelynothelix

An issue (number 2282) has been filed to correspond to this issue in the internal Khronos GitLab (Khronos members only: KHR:openxr/openxr#2282 ), to facilitate working group processes.

This GitHub issue will continue to be the main site of discussion.

rpavlik-bot avatar May 02 '24 15:05 rpavlik-bot

vkGetDeviceQueue2?

To get queues that were created with a non-zero flags parameter use vkGetDeviceQueue2.

from registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetDeviceQueue.html

Yeah, but the runtime still needs to know about the flags used to create the queue to use this function. And I don't think there is a way to give the runtime that info.

yshui avatar May 03 '24 14:05 yshui