Difference between revisions of "Intel Graphics"

From NixOS Wiki
Jump to: navigation, search
(Move the VA-API note into a dedicated section)
(Remove the Iris section (used by default in the imminent 20.09 release))
Line 2: Line 2:
  
 
To enable hardware (GPU) accelerated video decoding and encoding you need to add additional entries in <code>hardware.opengl.extraPackages</code> (see [[Accelerated_Video_Playback|"accelerated video playback"]]).
 
To enable hardware (GPU) accelerated video decoding and encoding you need to add additional entries in <code>hardware.opengl.extraPackages</code> (see [[Accelerated_Video_Playback|"accelerated video playback"]]).
 
== Iris ==
 
 
On <code>nixos-unstable</code> the new Gallium <code>iris</code> driver is enabled by default. For <code>nixos-20.03</code> you can use the following in your system configuration:
 
 
<syntaxHighlight lang=nix>
 
  config = {
 
    environment.variables = {
 
      MESA_LOADER_DRIVER_OVERRIDE = "iris";
 
    };
 
    hardware.opengl.package = (pkgs.mesa.override {
 
      galliumDrivers = [ "nouveau" "virgl" "swrast" "iris" ];
 
    }).drivers;
 
  };
 
</syntaxHighlight>
 
 
(See [https://github.com/NixOS/nixpkgs/pull/65017 this GitHub thread] for context and explanation. <code>nouveau</code> is included to trigger the gallium-xa build, which is currently required because the nix derivation expects to copy the gallium-xa pkg-config files into place. Without <code>swrast</code> and/or <code>virgl</code>, it complains about needing softpipe/llvmpipe to build the <code>nine state tracker</code>.)
 

Revision as of 12:45, 4 September 2020

Video acceleration

To enable hardware (GPU) accelerated video decoding and encoding you need to add additional entries in hardware.opengl.extraPackages (see "accelerated video playback").