about summary refs log tree commit diff
path: root/nixos/doc/manual/configuration
diff options
context:
space:
mode:
authorDavid McFarland <corngood@gmail.com>2022-12-06 09:42:02 -0400
committerDavid McFarland <corngood@gmail.com>2022-12-06 10:05:01 -0400
commit7df3e9ec5b1e10032dbb57d0a455e10e146bfad6 (patch)
treee9a4137f205af6b29b117fb3dc6fbf10406a46ed /nixos/doc/manual/configuration
parent1c9ffcf70786f0966982ce0fc76ec05df2e1dec2 (diff)
downloadnixlib-7df3e9ec5b1e10032dbb57d0a455e10e146bfad6.tar
nixlib-7df3e9ec5b1e10032dbb57d0a455e10e146bfad6.tar.gz
nixlib-7df3e9ec5b1e10032dbb57d0a455e10e146bfad6.tar.bz2
nixlib-7df3e9ec5b1e10032dbb57d0a455e10e146bfad6.tar.lz
nixlib-7df3e9ec5b1e10032dbb57d0a455e10e146bfad6.tar.xz
nixlib-7df3e9ec5b1e10032dbb57d0a455e10e146bfad6.tar.zst
nixlib-7df3e9ec5b1e10032dbb57d0a455e10e146bfad6.zip
nixos/doc/manual: add chapter on VA-API
Diffstat (limited to 'nixos/doc/manual/configuration')
-rw-r--r--nixos/doc/manual/configuration/gpu-accel.chapter.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixos/doc/manual/configuration/gpu-accel.chapter.md b/nixos/doc/manual/configuration/gpu-accel.chapter.md
index 835cbad55485..aa41e25e56f3 100644
--- a/nixos/doc/manual/configuration/gpu-accel.chapter.md
+++ b/nixos/doc/manual/configuration/gpu-accel.chapter.md
@@ -159,6 +159,40 @@ environment.variables.VK_ICD_FILENAMES =
   "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
 ```
 
+## VA-API {#sec-gpu-accel-va-api}
+
+[VA-API (Video Acceleration API)](https://www.intel.com/content/www/us/en/developer/articles/technical/linuxmedia-vaapi.html)
+is an open-source library and API specification, which provides access to
+graphics hardware acceleration capabilities for video processing.
+
+VA-API drivers are loaded by `libva`. The version in nixpkgs is built to search
+the opengl driver path, so drivers can be installed in
+[](#opt-hardware.opengl.extraPackages).
+
+VA-API can be tested using:
+
+```ShellSession
+$ nix-shell -p libva-utils --run vainfo
+```
+
+### Intel {#sec-gpu-accel-va-api-intel}
+
+Modern Intel GPUs use the iHD driver, which can be installed with:
+
+```nix
+hardware.opengl.extraPackages = [
+  intel-media-driver
+];
+```
+
+Older Intel GPUs use the i965 driver, which can be installed with:
+
+```nix
+hardware.opengl.extraPackages = [
+  vaapiIntel
+];
+```
+
 ## Common issues {#sec-gpu-accel-common-issues}
 
 ### User permissions {#sec-gpu-accel-common-issues-permissions}