Bugzilla – Bug 1216337
libvulkan_intel crashes in wsi_common_get_images
Last modified: 2023-10-20 11:41:55 UTC
I have a laptop (Dell Precision 3551) with switchable graphics: ╰─λ MESA_VK_DEVICE_SELECT=list vkcube selectable devices: GPU 0: 10de:1cbd "Quadro P620" discrete GPU GPU 1: 8086:9bc4 "Intel(R) UHD Graphics (CML GT2)" integrated GPU When trying to run anything Vulkan on the iGPU: ╰─λ MESA_VK_DEVICE_SELECT=8086:9bc4! MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE=1 vkcube it immediately crashes with this stack trace: #0 wsi_common_get_images (pSwapchainImages=0x0, pSwapchainImageCount=0x7fffe0d30888, _swapchain=0x0) at ../src/vulkan/wsi/wsi_common.c:1049 #1 wsi_GetSwapchainImagesKHR (device=0x55fba1fe38e0, swapchain=0x0, pSwapchainImageCount=0x7fffe0d30888, pSwapchainImages=0x0) at ../src/vulkan/wsi/wsi_common.c:1073 #2 0x000055fba0859acc in demo_prepare_buffers (demo=0x7fffe0d2fe00) at /usr/src/debug/Vulkan-Tools-sdk-1.3.261.0/cube/cube.c:1413 #3 0x000055fba085729e in demo_prepare (demo=0x7fffe0d2fe00) at /usr/src/debug/Vulkan-Tools-sdk-1.3.261.0/cube/cube.c:2296 #4 main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/Vulkan-Tools-sdk-1.3.261.0/cube/cube.c:4393
Thanks for the report. I'm afraid this is beyond my expertise. Therefore I think it would be good to report this also upstream. https://gitlab.freedesktop.org/mesa/mesa/-/issues
vkcubepp is broken the same way I assume? vulkaninfo works?
vkcubepp is also broken. Same with 32-bit versions. vulkaninfo{,32} work correctly. vkgears from Mesa-demos curiously seems to work (also it selects Intel by default as opposed to the previous tools)
Thanks for your feedback!
Ok. At least I now had a try with current TW (Mesa 23.2..1) on a Dell Precission 5520. I couldn't reproduce the issue, but it's still a GPU 0: 8086:191b "Intel(R) HD Graphics 530 (SKL GT2)" integrated GPU And I didn't install nVidia drivers yet. Did you? Which ones? I have installed a Maxwell (< Turing) based Model: "nVidia GM107GLM [Quadro M1200 Mobile]" Vendor: pci 0x10de "nVidia Corporation" Device: pci 0x13b6 "GM107GLM [Quadro M1200 Mobile]"
Seems fixed after some updates. Don't know what else you've changed.
Hmm. No idea. Also I couldn't select nvidia for vulkan without nvidia drivers. After installing nvidia drivers nvidia is being used by default and you cannot switch this. I'm not aware of a nouveau vulkan driver. Just the llvmpipe (software) variant "lvp".