You are not logged in.

#1 2022-07-04 15:27:45

apchar311
Member
Registered: 2022-01-26
Posts: 3

[SOLVED] Vulkan implementation is not being loaded by applications

Hello!

As of yesterday and a system update, Vulkan-based applications seem do not work, as in, they do not find my graphics card by default. For example, vulkaninfo outputs:

ERROR at /build/vulkan-tools/src/Vulkan-Tools-1.3.217/vulkaninfo/vulkaninfo.h:231:vkEnumeratePhysicalDevices failed with INCOMPLETE

Lutris refuses to launch games with a message: "Vulkan is not installed or is not supported by your system".

My graphics card is a Radeon RX 580. Both amdvlk and vulkan-radeon are installed, with 32 and 64-bit versions.

If the environment variable VK_ICD_FILENAMES is set to a valid value (like /usr/share/vulkan/icd.d/amd_icd64.json), everything works properly. While adding this to my .xprofile could work, it feels a bit workaround-ish and I would prefer to fix the problem at its core.

Relevant lspci -v output:

26:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7) (prog-if 00 [VGA controller])
	Subsystem: XFX Pine Group Inc. Radeon RX 580
	Flags: bus master, fast devsel, latency 0, IRQ 85, IOMMU group 15
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=2M]
	I/O ports at e000 [size=256]
	Memory at fce00000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Legacy Endpoint, MSI 00
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [150] Advanced Error Reporting
	Capabilities: [200] Physical Resizable BAR
	Capabilities: [270] Secondary PCI Express
	Capabilities: [2b0] Address Translation Service (ATS)
	Capabilities: [2c0] Page Request Interface (PRI)
	Capabilities: [2d0] Process Address Space ID (PASID)
	Capabilities: [320] Latency Tolerance Reporting
	Capabilities: [328] Alternative Routing-ID Interpretation (ARI)
	Capabilities: [370] L1 PM Substates
	Kernel driver in use: amdgpu

Thanks in advance!

Last edited by apchar311 (2022-07-04 19:27:49)

Offline

#2 2022-07-04 17:03:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,042

Re: [SOLVED] Vulkan implementation is not being loaded by applications

This is due to a bug in amdvlk's loader handling, it is picked first and supposed to interpret a environment variable to determine whether radv or amdvlk should be loaded but that's borked. SO your current workaround with enforcing a specific  ICD is actually the "correct" way to go for now. Otherwise just remove it, there are not many benefits to it over vulkan-radeon.

Offline

#3 2022-07-04 19:27:23

apchar311
Member
Registered: 2022-01-26
Posts: 3

Re: [SOLVED] Vulkan implementation is not being loaded by applications

Thank you! Uninstalling amdvlk worked, and it turns out that vulkan-radeon has better performance!

Offline

Board footer

Powered by FluxBB