User Tools

Site Tools


ubuntu:gpu:amdvlk:select_the_amdvlk_vulkan_driver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:gpu:amdvlk:select_the_amdvlk_vulkan_driver [2023/06/24 09:00] peterubuntu:gpu:amdvlk:select_the_amdvlk_vulkan_driver [2023/06/24 09:36] (current) peter
Line 1: Line 1:
 ====== Ubuntu - GPU - AMDVLK - Select the AMDVLK Vulkan Driver ====== ====== Ubuntu - GPU - AMDVLK - Select the AMDVLK Vulkan Driver ======
 +
 +<WRAP info>
 +
 +**NOTE:**  The actual driver files, can be located in various directories.
 +
 +Although **/usr/share/vulkan/icd.d/** and **/etc/vulkan/icd.d/** are the most commonly used paths, the Vulkan loader looks in all the following locations:
 +
 +<code>
 +/etc/vulkan/icd.d
 +/usr/local/etc/vulkan/icd.d
 +/usr/local/share/vulkan/icd.d
 +/usr/share/vulkan/icd.d
 +$HOME/.local/share/vulkan/icd.d
 +</code>
 +
 +</WRAP>
 +
 +
 +----
  
 ===== Select the AMDVLK Vulkan Driver ===== ===== Select the AMDVLK Vulkan Driver =====
Line 15: Line 34:
  
 ---- ----
 +
 +===== Select the Mesa RADV Vulkan Driver =====
 +
 +<code bash>
 +export AMD_VULKAN_ICD=RADV
 +</code>
 +
 +----
 +
 +===== Reenable the ICD based loading approach =====
 +
 +Alternatively to the above.
 +
 +<code bash>
 +export DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1
 +</code>
 +
 +<WRAP info>
 +**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:
 +
 +<code bash>
 +VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json steam
 +</code>
 +
 +  * 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. 
 +
 +</WRAP>
 +
 +----
 +
 +===== References =====
 +
 +https://wiki.archlinux.org/title/Vulkan#Selecting_vulkan_driver
  
ubuntu/gpu/amdvlk/select_the_amdvlk_vulkan_driver.1687597253.txt.gz · Last modified: 2023/06/24 09:00 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki