monado-service launch failed because of missing VK_KHR_External_memory_fd
Hello, I'm learning monado-service in Linux,
When I build success and try to run monado-service,
There's vulkan extension issue in build_device_extensions.
I added some logs and found there're 7 required vulkan extensions:
- ERROR [build_device_extensions] ext[0][VK_KHR_swapchain]
- ERROR [build_device_extensions] ext[1][VK_KHR_dedicated_allocation]
- ERROR [build_device_extensions] ext[2][VK_KHR_external_fence]
- ERROR [build_device_extensions] ext[3][VK_KHR_external_memory]
- ERROR [build_device_extensions] ext[4][VK_KHR_external_semaphore]
- ERROR [build_device_extensions] ext[5][VK_KHR_get_memory_requirements2]
- ERROR [build_device_extensions] ext[6][VK_KHR_external_memory_fd]
- ERROR [build_device_extensions] ext[0][VK_KHR_swapchain]
- ERROR [build_device_extensions] ext[1][VK_KHR_dedicated_allocation]
- ERROR [build_device_extensions] ext[2][VK_KHR_external_fence]
- ERROR [build_device_extensions] ext[3][VK_KHR_external_memory]
- ERROR [build_device_extensions] ext[4][VK_KHR_external_semaphore]
- ERROR [build_device_extensions] ext[5][VK_KHR_get_memory_requirements2]
- ERROR [build_device_extensions] ext[6][VK_KHR_external_memory_fd] 《== this is missing
- ERROR [build_device_extensions] build_device_extensions failed2[7]
- ERROR [vk_create_device] build_device_extensions fail
- ERROR [create_device] vk_create_device: VK_ERROR_EXTENSION_NOT_PRESENT
-
Failed to create Vulkan device.
But vk_create_device fail because "VK_KHR_external_memory_fd" is missing.
Is it because my vulkan driver not support this extension? is there any way to install or make it support?
sorry I'm a totally new with vulkan.
If I deleted the required extension VK_KHR_external_memory_fd from "static const char *required_device_extensions[] " define in \xrt\compositor\main\comp_compositor.c,
monado-service could be launched normally. but when I run Hello_xr in openxr sdk, using this command:
./hello_xr -g Vulkan
there's also EXTENSION NOT SUPPORT error.
when I change to use OpenGL with this command:
./hello_xr -g OpenGL
There's another issue:
client_gl_xlib_compositor_create - Required OpenGL extension GL_EXT_memory_object not available. XR_ERROR_INITIALIZATION_FAILED in xrCreateSession: Failed to create an xlib client compositor.
How could I fix this issue? is anybody could help? any reply will be appreciated, thank you!