This is a working Steam Vulkan recipe for a Lenovo G505S laptop with opensource coreboot BIOS and no CPU backdoors ( see http://dangerousprototypes.com/docs/Lenovo_G505S_hacking ) that has two AMD GPUs (Terascale integrated GPU HD-8650G of A10-5750M + a Southern Islands discrete GPU R5-M230). If launching a game like The Long Dark instantly crashes and you see an error like
tld.x86_64[18426]: segfault at 10 ip 0000642ab006e24e sp 000070296dfda9e8 error 4 in libvulkan.so.1.4.313[4024e,642ab0035000+53000] likely on CPU 3 (core 3, socket 1)
Code: 31 c0 e8 55 bc ff ff ff 15 df 83 04 00 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 48 b8 ed ad 10 02 02 ed ad 10 <48> 39 47 10 75 1c 48 8b 47 18 48 85 c0 74 13 48 8b 0f 48 89 c7 48
at your Linux kernel log by a dmesg command, then:
1) Make sure that a Southern Islands discrete R5-M230 GPU (more modern than a Terascale integrated GPU HD-8650G of A10-5750M) is enabled for this game, by clicking "Properties... --> Launch Options" and writing "DRI_PRIME=1 " there (without the quotes but with a trailing space just in case)
2) Install these packages:
sudo pacman -S mesa lib32-mesa vulkan-mesa-layers lib32-vulkan-mesa-layers vulkan-radeon lib32-vulkan-radeon amdvlk lib32-amdvlk vulkaninfo vulkan-tools
3) Create a new /usr/bin/steamvlk script which should contain this command:
#!/bin/sh
VK_DRIVER_FILES=/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json steam "$@"
(borrowed from https://wiki.archlinux.org/title/Vulkan#Selecting_via_environment_variable)
4) Replace "steam" with "steamvlk" at all your Steam launchshortcuts
5) Preferably launch "steamvlk" from Terminal, until this Artix-dark theme issue is resolved - https://forum.artixlinux.org/index.php/topic,8154.0.html
After these tricks, now you can ensure that everything is working fine including the Vulkan-dependent games
P.S. Initially I tried switching from radeon to amdgpu driver by these instructions - https://wiki.archlinux.org/title/AMDGPU#Enable_Southern_Islands_(SI)_and_Sea_Islands_(CIK)_support - but they gave me a blinking cursor on Artix booting, stuck right before the login screen. Although eventually I got by without amdgpu driver by the workaround above, if anyone is more successful with amdgpu driver - please share your experience below