Hi,
I have a small test Vulkan application that just opens an X11 window and
then asks the installed Vulkan ICDs if they are capable of using this
window as a presentation surface.
When logged in over SSH, $DISPLAY points to a remote server, so my
expectation would be for the nV driver to graciously decline when asked
if this is a valid render target. Instead, I get
==30443== Warning: invalid file descriptor -1 in syscall close()
==30443== Warning: unimplemented fcntl command: 1033
==30443== Jump to the invalid address stated on the next line
==30443== at 0x0: ???
==30443== by 0x123B284E: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03)
==30443== by 0x123A601B: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03)
==30443== by 0x123B2D82: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03)
==30443== by 0x1457033D: vulkan_layer_chassis::GetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice_T*, VkSurfaceKHR_T*, VkSurfaceCapabilitiesKHR*) (chassis.cpp:4703)
==30443== by 0x1098C0: vulkan_setup (vulkan_setup.c:211)
==30443== by 0x109319: main (vkload.c:27)
==30443== Address 0x0 is not stack'd, malloc'd or (recently) free'd
In the same way, calling vulkaninfo gives
ERROR at /build/vulkan-tools-oFB8Ns/vulkan-tools-1.2.162.0+dfsg1/vulkaninfo/vulkaninfo.h:248:vkGetPhysicalDeviceSurfaceFormats2KHR failed with ERROR_INITIALIZATION_FAILED
with DISPLAY unset, vulkaninfo shows both my GTK980 and the llvmpipe
driver as normal, with no presentable surfaces.
Simon