Intel Graphics: Difference between revisions

From NixOS Wiki
imported>Colemickens
No edit summary
imported>Primeos
m Iris is the default on nixos-unstable (since Mesa 20.0)
Line 1: Line 1:
== Iris ==
== Iris ==


To use the new Gallium <code>iris</code> driver, you can use the following in your system configuration:
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>
<syntaxHighlight lang=nix>

Revision as of 09:40, 6 August 2020

Iris

On nixos-unstable the new Gallium iris driver is enabled by default. For nixos-20.03 you can use the following in your system configuration:

  config = {
    environment.variables = {
      MESA_LOADER_DRIVER_OVERRIDE = "iris";
    };
    hardware.opengl.package = (pkgs.mesa.override {
      galliumDrivers = [ "nouveau" "virgl" "swrast" "iris" ];
    }).drivers;
  };

Note that you might want additional entries in extraPackages, for example, to enable "accelerated video playback".

(See this GitHub thread for context and explanation. nouveau 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 swrast and/or virgl, it complains about needing softpipe/llvmpipe to build the nine state tracker.)