Difference between revisions of "Vulkan"

From ArchWiki
Jump to navigation Jump to search
(Added command to list installed implementations)
(Installation: Updated list of implementations for AMD)
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:
 
{{Note|1=
 
{{Note|1=
 
On hybrid graphics ([[NVIDIA Optimus]]/AMD Dynamic Switchable Graphics):
 
On hybrid graphics ([[NVIDIA Optimus]]/AMD Dynamic Switchable Graphics):
*Vulkan is not currently officially supported by [[Bumblebee]] [https://github.com/Bumblebee-Project/Bumblebee/issues/769] but does work with {{Pkg|primus_vk}} or {{AUR|primus-vk-git}}.
+
 
*The Radeon Vulkan driver now supports [[PRIME]] [http://www.phoronix.com/scan.php?page=news_item&px=RADV-PRIME-Lands].
+
* Vulkan is not currently officially supported by [[Bumblebee]] [https://github.com/Bumblebee-Project/Bumblebee/issues/769] but does work with {{Pkg|primus_vk}} or {{AUR|primus-vk-git}}.
 +
* The Radeon Vulkan driver now supports [[PRIME]] [http://www.phoronix.com/scan.php?page=news_item&px=RADV-PRIME-Lands].
 
}}
 
}}
  
To run a Vulkan application, you will need to [[install]] the {{pkg|vulkan-icd-loader}} package (and {{pkg|lib32-vulkan-icd-loader}} if you also want to run 32-bit applications), as well as the Vulkan drivers for your graphics card(s):
+
To run a Vulkan application, you will need to [[install]] the {{Pkg|vulkan-icd-loader}} package (and {{Pkg|lib32-vulkan-icd-loader}} if you also want to run 32-bit applications), as well as the Vulkan drivers for your graphics card(s):
 +
 
 +
* [[Intel]]: {{Pkg|vulkan-intel}}
 +
* [[NVIDIA]]: {{Pkg|nvidia}}
 +
* [[AMDGPU|AMD]]: there are three implementations, which could be installed simultaneously:
 +
** {{Pkg|vulkan-radeon}} - RADV (part of Mesa project)
 +
** {{AUR|amdvlk}} - AMDVLK Open (maintained by AMD)
 +
** {{AUR|vulkan-amdgpu-pro}} - AMDVLK Closed (maintained by AMD)
  
* [[Intel]]: {{pkg|vulkan-intel}}
 
* [[NVIDIA]]: {{pkg|nvidia}}
 
* AMD: {{pkg|vulkan-radeon}} ([[radeon]], [[AMDGPU]] [https://www.phoronix.com/scan.php?page=news_item&px=RADV-Vulkan-CTS-Conformant]) or {{AUR|amdgpu-pro-vulkan}} ([[AMDGPU PRO]]) or {{AUR|amdvlk-git}}
 
  
 
Other drivers may be installed manually instead:
 
Other drivers may be installed manually instead:
Line 26: Line 31:
 
* Adreno: https://developer.qualcomm.com/software/adreno-gpu-sdk/gpu
 
* Adreno: https://developer.qualcomm.com/software/adreno-gpu-sdk/gpu
  
For Vulkan application development, [[install]] {{pkg|vulkan-headers}}, and optionally {{pkg|vulkan-validation-layers}} and {{pkg|vulkan-tools}} (you can find the vulkaninfo tool in here).
+
For Vulkan application development, [[install]] {{Pkg|vulkan-headers}}, and optionally {{Pkg|vulkan-validation-layers}} and {{Pkg|vulkan-tools}} (you can find the vulkaninfo tool in here).
  
 
== Verification ==
 
== Verification ==
 +
 
To see which Vulkan implementations are currently installed on your system, use the following command:
 
To see which Vulkan implementations are currently installed on your system, use the following command:
 +
 
  $ ls /usr/share/vulkan/icd.d/
 
  $ ls /usr/share/vulkan/icd.d/
  
 
== Vulkan Hardware Database ==
 
== Vulkan Hardware Database ==
  
The [http://vulkan.gpuinfo.org/ Vulkan Hardware Database] provides user reported GPU/driver combinations. Supplying own information is possible by using {{aur|vulkan-caps-viewer}}.
+
The [http://vulkan.gpuinfo.org/ Vulkan Hardware Database] provides user reported GPU/driver combinations. Supplying own information is possible by using {{AUR|vulkan-caps-viewer}}.
  
 
== Troubleshooting ==
 
== Troubleshooting ==
Line 52: Line 59:
 
=== Nvidia - vulkan is not working and can not initialize ===
 
=== Nvidia - vulkan is not working and can not initialize ===
  
Check if you have {{pkg|vulkan-intel}} installed, it may prevent Nvidia's vulkan driver from being detected.
+
Check if you have {{Pkg|vulkan-intel}} installed, it may prevent Nvidia's vulkan driver from being detected.
  
 
Alternatively set the [[environment variable]] {{ic|VK_ICD_FILENAMES}} to {{ic|/usr/share/vulkan/icd.d/nvidia_icd.json}}.
 
Alternatively set the [[environment variable]] {{ic|VK_ICD_FILENAMES}} to {{ic|/usr/share/vulkan/icd.d/nvidia_icd.json}}.

Latest revision as of 00:49, 22 June 2019

From wikipedia:Vulkan (API):

Vulkan is a low-overhead, cross-platform 3D graphics and compute API.

Learn more at Khronos.

Installation

Note: On hybrid graphics (NVIDIA Optimus/AMD Dynamic Switchable Graphics):

To run a Vulkan application, you will need to install the vulkan-icd-loader package (and lib32-vulkan-icd-loader if you also want to run 32-bit applications), as well as the Vulkan drivers for your graphics card(s):


Other drivers may be installed manually instead:

For Vulkan application development, install vulkan-headers, and optionally vulkan-validation-layers and vulkan-tools (you can find the vulkaninfo tool in here).

Verification

To see which Vulkan implementations are currently installed on your system, use the following command:

$ ls /usr/share/vulkan/icd.d/

Vulkan Hardware Database

The Vulkan Hardware Database provides user reported GPU/driver combinations. Supplying own information is possible by using vulkan-caps-viewerAUR.

Troubleshooting

Error - vulkan: No DRI3 support

If you get the message above and using Intel graphics, you may need to force DRI3 and restart Xorg:

/etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "DRI"    "3"
EndSection

Nvidia - vulkan is not working and can not initialize

Check if you have vulkan-intel installed, it may prevent Nvidia's vulkan driver from being detected.

Alternatively set the environment variable VK_ICD_FILENAMES to /usr/share/vulkan/icd.d/nvidia_icd.json.