Intel Graphics: Difference between revisions

From NixOS Wiki
imported>Colemickens
mNo edit summary
imported>Colemickens
No edit summary
Line 6: Line 6:
hardware.opengl.package =
hardware.opengl.package =
   (pkgs.mesa.override {
   (pkgs.mesa.override {
     galliumDrivers = [
     galliumDrivers = [ "nouveau" "virgl" "swrast" "iris" ];
      "r300" "r600" "radeonsi" "nouveau" "virgl" "svga" "swrast"
      "iris"
    ];
   });
   });
</syntaxHighlight>
</syntaxHighlight>
Line 15: Line 12:
Note that you might want additional entries in <code>extraPackages</code>, for example, to enable [[Accelerated_Video_Playback|"accelerated video playback"]].
Note that you might want additional entries in <code>extraPackages</code>, for example, to enable [[Accelerated_Video_Playback|"accelerated video playback"]].


(See [https://github.com/NixOS/nixpkgs/pull/65017 this GitHub thread] for context and explanation.)
(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 21:53, 18 July 2019

Iris

To use the new Gallium iris driver, you can use the following in your system configuration:

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

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.)