AMD GPU: Difference between revisions
imported>Artturin mNo edit summary |
imported>SuperSamus No edit summary |
||
| Line 1: | Line 1: | ||
This guide is about setting up NixOS to correctly use your | This guide is about setting up NixOS to correctly use your AMD Graphics card if it is relatively new (aka, after the GCN architecture). | ||
== Make the kernel use the correct driver early == | == Make the kernel use the correct driver early == | ||
| Line 20: | Line 20: | ||
== Enable Southern Islands (SI) and Sea Islands (CIK) support == | == Enable Southern Islands (SI) and Sea Islands (CIK) support == | ||
The | The oldest architectures that AMDGPU supports are [https://en.wikipedia.org/wiki/Radeon_HD_7000_series Southern Islands (SI, ie. GCN 1)] and [https://en.wikipedia.org/wiki/Radeon_HD_8000_series Sea Islands (CIK, ie. GCN 2)], but support for them is disabled by default. To use AMDGPU instead of the radeon driver, you can set the kernel parameters: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
# for Southern Islands (SI) cards | # for Southern Islands (SI ie. GCN 1) cards | ||
boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ]; | boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ]; | ||
# for Sea Islands (CIK) cards | # for Sea Islands (CIK ie. GCN 2) cards | ||
boot.kernelParams = [ "radeon.cik_support=0" "amdgpu.cik_support=1" ]; | boot.kernelParams = [ "radeon.cik_support=0" "amdgpu.cik_support=1" ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 38: | Line 38: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You should also install the clinfo package to verify that | You should also install the clinfo package to verify that OpenCL is correctly setup (or check in the program you use to see if it is now available, such as in Darktable). | ||
== Vulkan == | == Vulkan == | ||