Closed ghpzin closed 4 days ago
This is specifically on setups that would normally need to fall back to software rendering, right?
This is specifically on setups that would normally need to fall back to software rendering, right?
Yes, seems like it.
Sorry, I tested on my machine by switching to xorg/intel, but probably did something wrong before (due to it being on laptop with nvidia).
At least kitty
, wayst
, darktile
seem to open properly.
I'll pull the dril fixes into staging-next then.
mesa
on nixos-unstable
got to 24.2.2
All mentioned tests pass.
Issue is mostly for information purposes. As far as I can tell it is upstream mesa bug and fixed with currently merged MRs in master: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30979 https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31013 So waiting for next mesa patch version with these seems to be the best course.
Describe the bug
After mesa update #332413 (
24.1.6 -> 24.2.1
) a lot of tests fail with errors similar to "GLX extension not found".Example: https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.terminal-emulators.kitty.x86_64-linux https://hydra.nixos.org/build/271100383
List of tests that fail (found so far): https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.terminal-emulators.kitty.x86_64-linux https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.terminal-emulators.wayst.x86_64-linux https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.terminal-emulators.darktile.x86_64-linux https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.quake3.x86_64-linux https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.openarena.x86_64-linux https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.warzone2100.x86_64-linux https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.aaaaxy.x86_64-linux https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.qtile.x86_64-linux --- depends on kitty terminal opening
Windows of these apps do not open as a result. Tested on other variations of VMs and seemingly it does not occur with wayland, occurs on xorg not in VM too.
One other example is
alacritty
, which prints new error, but still opens window and test passes: https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.terminal-emulators.alacritty.x86_64-linux https://hydra.nixos.org/build/271139043Steps To Reproduce
Steps to reproduce the behavior:
nix-build -A nixosTests.terminal-emulators.kitty
Additional context
The closest upstream issue I could find: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11809 Error in logs there:
Doing either of these 2 fixes the issue and makes tests pass again:
Second patch depends on first.
nixpkgs diff for patches
```diff diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index dc722d44243f..fb15f590a793 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -93,6 +93,7 @@ ] , mesa , makeSetupHook +, fetchpatch }: let @@ -139,6 +140,16 @@ in stdenv.mkDerivation { patches = [ ./opencl.patch + # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30979 + (fetchpatch { + url = "https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30979.patch"; + hash = "sha256-JbrygyjtgNcQlggv1X+3HWf4WRWdtyeEvg3jwthEspM="; + }) + # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31013 + (fetchpatch { + url = "https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31013.patch"; + hash = "sha256-J6P7k6SuOqRzmeqiiAc+QgBDp5nIBY+sPwvnQ+hlCW8="; + }) ]; postPatch = '' ```Notify maintainers
Listed mesa maintainers: @primeos @vcunat
@K900 (author of update PR)
Add a :+1: reaction to issues you find important.