ubuntu:gpu:amdvlk
This is an old revision of the document!
Table of Contents
Ubuntu - GPU - AMDVLK
AMDVLK is the AMD official open-source Vulkan driver for Linux systems.
- AMDVLK is derived from the same sources as their Windows/Linux proprietary driver but built against the open-source AMDGPU LLVM shader compiler rather than AMDs proprietary shader compiler.
AMDVLK comes with something AMD calls “AMD switchable graphics layer” in the form of a implicit layer library and configuration file in /etc/vulkan/implicit_layer.d/amd_icd64.json.
- This lets you choose what Vulkan driver to use by setting AMD_VULKAN_ICD to AMDVLK or RADV if you choose to install the AMDVLK driver side-by-side with the Mesa RADV Vulkan driver.
Select the AMDVLK Vulkan Driver
export AMD_VULKAN_ICD=AMDVLK
NOTE: AMDVLK is the default, but may cause issues with Steam and other applications.
- RADV is often much better, faster and more up to date!
Select the Mesa RADV Vulkan Driver
export AMD_VULKAN_ICD=RADV
Reenable the ICD based loading approach
Alternatively to the above.
export DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1
NOTE: When DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1, you can choose your preferred Vulkan driver by setting the environment variable VK_ICD_FILENAMES.
- For example, running Steam with the RADV driver is done by:
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json steam
- To avoid crashes with 32-bit games, it is possible to assign the 32-bit variant and the 64-bit variant to the environment variable.
References
ubuntu/gpu/amdvlk.1687078619.txt.gz · Last modified: 2023/06/18 08:56 by peter