Bug 1216337 - libvulkan_intel crashes in wsi_common_get_images
Summary: libvulkan_intel crashes in wsi_common_get_images
Status: RESOLVED WORKSFORME
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Gfx Bugs
QA Contact: Gfx Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-17 12:16 UTC by Bruno Pitrus
Modified: 2023-10-20 11:41 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Pitrus 2023-10-17 12:16:59 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
Comment 1 Stefan Dirsch 2023-10-19 11:50:45 UTC
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
Comment 2 Stefan Dirsch 2023-10-19 11:52:48 UTC
vkcubepp is broken the same way I assume? vulkaninfo works?
Comment 3 Bruno Pitrus 2023-10-19 19:43:16 UTC
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)
Comment 4 Stefan Dirsch 2023-10-19 20:05:07 UTC
Thanks for your feedback!
Comment 5 Stefan Dirsch 2023-10-20 09:58:23 UTC
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]"
Comment 6 Bruno Pitrus 2023-10-20 10:52:46 UTC
Seems fixed after some updates. Don't know what else you've changed.
Comment 7 Stefan Dirsch 2023-10-20 11:41:55 UTC
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".