AMD GPU: Difference between revisions
mNo edit summary Tags: Mobile edit Mobile web edit |
|||
| Line 104: | Line 104: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Older GPUs (TeraScale) === | |||
<!-- FIXME this should be moved to a dedicated page for the "radeon" driver or OpenCL, if either of those are created at some point in the future --> | |||
For graphics cards older than GCN 1 — or for any GCN using the "radeon" driver — enable OpenCL by adding Clover ''instead of'' the ROCm ICD: | |||
<syntaxhighlight lang="nix"> | |||
hardware.opengl.extraPackages = [ | |||
# NOTE: at some point GPUs in the R600-family and newer | |||
# may need to replace this with the "rusticl" ICD; | |||
# and GPUs in the R500-family and older may need to | |||
# pin the package version or backport/patch this back in | |||
# - https://www.phoronix.com/news/Mesa-Delete-Clover-Discussion | |||
# - https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19385 | |||
pkgs.mesa.opencl | |||
]; | |||
</syntaxhighlight> | |||
Merely installing <code>mesa.opencl</code> with <code>nix-shell -p</code> will not work; it needs to be present at build-time for the OpenCL ICD loader, which only searches static paths. | |||
== Vulkan == | == Vulkan == | ||