Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about how queueIndex in XrGraphicsBindingVulkanKHR is interpreted. #168

Open
yshui opened this issue May 1, 2024 · 3 comments
Open
Labels
synced to gitlab A corresponding issue has been filed in the Khronos internal GitLab

Comments

@yshui
Copy link

yshui commented May 1, 2024

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.

@absolutelynothelix
Copy link

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

@rpavlik-bot rpavlik-bot added the synced to gitlab A corresponding issue has been filed in the Khronos internal GitLab label May 2, 2024
@rpavlik-bot
Copy link
Collaborator

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.

@yshui
Copy link
Author

yshui commented May 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
synced to gitlab A corresponding issue has been filed in the Khronos internal GitLab
Projects
None yet
Development

No branches or pull requests

3 participants