Forum Discussion

trilorez's avatar
trilorez
Honored Guest
3 years ago

Incorrect XR_KHR_vulkan_enable2 implementation?

I have a project that uses the deprecated vrapi that I'm attempting to convert over to OpenXR. There seems to be an issue I'm running into while trying to set up Vulkan. My understanding is that `XR_KHR_vulkan_enable2` is the preferred extension to use while `XR_KHR_vulkan_enable` is deprecated. In other words, I should be able to use `XR_KHR_vulkan_enable2` on its own without requiring `XR_KHR_vulkan_enable` functions.

The specific issue I'm running into is, when I call `xrCreateSession`, among the log messages I see some warnings:

VulkanLoader::LoadDeviceFunctions: Failed to load vkCmdDebugMarkerInsertEXT, likely vkDevice created without xrGetVulkanDeviceExtensionsKHR/vrapi_GetDeviceExtensionsVulkan
VulkanLoader::LoadDeviceFunctions: Failed to load vkDebugMarkerSetObjectTagEXT, likely vkDevice created without xrGetVulkanDeviceExtensionsKHR/vrapi_GetDeviceExtensionsVulkan
VulkanLoader::LoadDeviceFunctions: Failed to load vkGetMemoryFdKHR, likely vkDevice created without xrGetVulkanDeviceExtensionsKHR/vrapi_GetDeviceExtensionsVulkan
VulkanLoader::LoadDeviceFunctions: Failed to load vkGetAndroidHardwareBufferPropertiesANDROID, likely vkDevice created without xrGetVulkanDeviceExtensionsKHR/vrapi_GetDeviceExtensionsVulkan
VulkanLoader::LoadDeviceFunctions: Failed to load vkGetMemoryAndroidHardwareBufferANDROID, likely vkDevice created without xrGetVulkanDeviceExtensionsKHR/vrapi_GetDeviceExtensionsVulkan

My understanding is that, when I called `xrCreateVulkanDeviceKHR`, the runtime is supposed to provided these required extensions so that I don't have to call `xrGetVulkanDeviceExtensionsKHR` myself. `xrCreateVulkanDeviceKHR` is part of `XR_KHR_vulkan_enable2`, while `xrGetVulkanDeviceExtensionsKHR` is part of `XR_KHR_vulkan_enable` so they should be independent.

Is `xrCreateVulkanDeviceKHR` incorrectly implemented or am I missing something?

1 Reply

  • trilorez's avatar
    trilorez
    Honored Guest

    I tried using `xrGetVulkanDeviceExtensionsKHR` and still get the warning messages so it must be an unrelated issue.