Mesa: Difference between revisions

imported>PedroHLC
m update default drivers to 22.3.0
amend the Intel Xe note for Mesa >25.1.0
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://www.mesa3d.org/ Mesa] is an open source implementation of several graphics APIs including OpenGL and Vulkan.
[https://www.mesa3d.org/ Mesa] is an open source implementation of several graphics APIs including OpenGL and Vulkan.
You can change the Mesa version using the <code>hardware.graphics.package</code> option as of NixOS 25.05.


== Enabling Vulkan Layers ==
== Enabling Vulkan Layers ==
Line 77: Line 79:
   else throw "Unsupported platform: this derivation only supports Linux/Darwin"
   else throw "Unsupported platform: this derivation only supports Linux/Darwin"
</syntaxhighlight>
</syntaxhighlight>
== Intel Xe Driver Warning Spam ==
If you're using the Intel Xe driver you may end up getting a lot of <code>MESA: warning: Support for this platform is experimental with Xe KMD, bug reports may be ignored.</code> messages spam in your console when running various tools. You can disable this spam by setting the [https://docs.mesa3d.org/envvars.html MESA_LOG_FILE] environment variable to some file location (like <code>/dev/null</code>). To make the change permanent you could add it to your <code>environment.variables</code> attribute set in your nix config. The downside to this approach is that you won't see legitimate Mesa warnings or errors on your console afterwards.
Starting with [https://docs.mesa3d.org/relnotes/25.1.0.html Mesa 25.1.0], you can suppress the warning with <code>INTEL_XE_IGNORE_EXPERIMENTAL_WARNING=1</code>.


[[Category: Video]]
[[Category: Video]]