AMD GPU Linux (Arch)

Driver: Xorg, Wayland

Vulkan: Gamers

OPENCL: Blender, GIMP, Davinci Resolve

VDPAU: OBS , FFMPEG , Simple Screen Recorders

We can install all three AMD Vulkan drivers and use vulkan-prefixes to run programs using a specific Vulkan driver

We will start with the gamers setup of just AMDVLK and vulkan-radeon (RADV)

RX5000 Series GPU and newer.

sudo pacman -S xf86-video-amdgpu amdvlk lib32-amdvlk vulkan-radeon lib32-vulkan-radeon opencl-mesa libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau

Vulkan Prefixes (selector)

yay -S amd-vulkan-prefixes

PRO (Blender, Davinci Resolve etc)

git clone https://aur.archlinux.org/amdgpu-pro-installer.git
cd amdgpu-pro-installer
makepkg -si

OpenCL for PRO

yay -S opencl-amd

Usage

To run an application using PRO drivers for OpenGL and Vulkan progl vk_pro steam

Davinci Resolve progl resolve

OBS vk_pro obs

Enable hardware encoders, raytracing, system default Vulkan etc

Hardware encoder/decodersudo nano /etc/environment

addLIBVA_DRIVER_NAME=radeonsi
VDPAU_DRIVER=radeonsi

Remove shader cache stutters
addDXVK_ASYNC=1

Enable raytracing for PRO
addVKD3D_CONFIG=dxr11,dxr

Change system default vulkan driver from AMDVLK to vulkan-radeon (RADV)
addAMD_VULKAN_ICD=RADV

Enable ICD Loader method to choose system default vulkan driver
addDISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1

When using ICD Loader method, add and uncomment one off VK_ICD_FILENAMES lines## Radeon (RADV)
#VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json
## AMDVLK
#VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_icd32.json:/usr/share/vulkan/icd.d/amd_icd64.json
## AMDVLK PRO
#VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd32.json:/usr/share/vulkan/icd.d/amd_pro_icd64.json

Woohoo,

If any of that don’t make sense try these links. Props to those guys, awesome and well maintained documentation.

https://wiki.archlinux.org/title/AMDGPU

https://wiki.archlinux.org/title/AMDGPU_PRO

https://wiki.archlinux.org/title/Vulkan

Please ping me a comment if any of my ‘guide’ here needs updating. THX.

BaDboD