AMD GPU: Difference between revisions

imported>Jiehong
mNo edit summary
imported>Artturin
No edit summary
Line 36: Line 36:
== Vulkan ==
== Vulkan ==


Starting from 20.09, the Vulkan drivers can be used:
<syntaxhighlight lang="nix">
hardware.opengl.driSupport = true;
# For 32 bit applications
hardware.opengl.driSupport32Bit = true;
</syntaxhighlight>
 
Starting from 20.09, the amdvlk drivers can be used in addition to the mesa radv drivers, the program will choose which one to use:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
hardware.opengl.extraPackages = with pkgs; [
hardware.opengl.extraPackages = with pkgs; [
   amdvlk
   amdvlk
];
# For 32 bit applications
hardware.opengl.extraPackages32 = with pkgs; [
  driversi686Linux.amdvlk
];
];
</syntaxhighlight>
</syntaxhighlight>
more information can be found here https://nixos.org/manual/nixos/unstable/index.html#sec-gpu-accel-vulkan