I’m trying to make use of VK_KHR_display and VK_KHR_display_swapchain on Linux with the 418.43 drivers (GTX 1080 Ti). I’ve used the vulkan sdk version 1.1.97 and 1.1.101 with the same result.
The problem is the latter extension doesn’t appear to exist. vulkanCapsViewer doesn’t list it as being available either. When I try to load the device extension the validation layers give me this message.
loader_validate_device_extensions: Device extension VK_KHR_display_swapchain not supported by
selected physical device or enabled layers.
Of course ignoring this leads to a segfault when trying to create the swapchain.
Should VK_KHR_display_swapchain be supported for my configuration? Are there any other prerequisites I should check to get this working?
I was very confused by this as well when i tried to implement direct mode rendering.
I got it to work by using vkAcquireXlibDisplayEXT from VK_EXT_acquire_xlib_display.
Then i was able to create and render to a direct mode swapchain without needing to enable the VK_KHR_display_swapchain extension.
To get vkAcquireXlibDisplayEXT to work i also had to configure ubuntu to not use the display. Basically set ubuntu to use a single display then it worked :)
I got 15-extension at instance, I enabled 4 of then(bold):
VK_KHR_device_group_creation
VK_KHR_display
VK_KHR_external_fence_capabilities
VK_KHR_external_memory_capabilities
VK_KHR_external_semaphore_capabilities
VK_KHR_get_display_properties2
VK_KHR_get_physical_device_properties2
VK_KHR_get_surface_capabilities2
VK_KHR_surface
VK_KHR_surface_protected_capabilities
VK_KHR_xcb_surface
VK_EXT_debug_report
VK_EXT_debug_utils
VK_EXT_direct_mode_display
VK_EXT_display_surface_counter
I got 89-extension at device(GeForce GTX 780).
I want to enable VK_KHR_sampler_ycbcr_conversion, VK_KHR_swapchain and VK_KHR_display_swapchain.
But there is no VK_KHR_display_swapchain.
When I call vkCreateDevice(), I got:
“Device extension VK_KHR_display_swapchain not supported by selected physical device or enabled layers”