OpenGL: Difference between revisions
imported>Primeos dev m →Testing Mesa updates: Mention the limitations/issues |
imported>Primeos dev Briefly document how to debug Mesa issues |
||
Line 22: | Line 22: | ||
'''Note:''' Both of these approaches are impure and only work to a certain degree (many limitations!). If you want to use a different version of Mesa your best option is to use an overlay or a Git worktree where you use the same Nixpkgs revision and only alter <code>pkgs/development/libraries/mesa/</code> for one of the two approaches mentioned above. | '''Note:''' Both of these approaches are impure and only work to a certain degree (many limitations!). If you want to use a different version of Mesa your best option is to use an overlay or a Git worktree where you use the same Nixpkgs revision and only alter <code>pkgs/development/libraries/mesa/</code> for one of the two approaches mentioned above. | ||
== Debugging Mesa issues == | |||
There are a lot of useful environment variables for debugging purposes: https://docs.mesa3d.org/envvars.html | |||
The most important one is <code>LIBGL_DEBUG=verbose</code> and helps with debugging error like: | |||
<pre> | |||
libGL error: MESA-LOADER: failed to open $DRIVER (search paths /run/opengl-driver/lib/dri) | |||
libGL error: failed to load driver: $DRIVER | |||
</pre> | |||
== Related == | == Related == | ||
https://nixos.wiki/wiki/Nixpkgs_with_OpenGL_on_non-NixOS | https://nixos.wiki/wiki/Nixpkgs_with_OpenGL_on_non-NixOS |