Mesa >=23.1.4 seems to be forcing the use of llvmpipe instead of using GPU acceleration
Background:
- https://github.com/NixOS/nixpkgs/issues/248439
- https://github.com/ValveSoftware/steam-for-linux/issues/9976
- https://github.com/ValveSoftware/steam-for-linux/issues/9977
- https://github.com/ValveSoftware/steam-for-linux/issues/9978
- https://github.com/ValveSoftware/steam-for-linux/issues/9752
- #9345 (closed)
- https://github.com/libsdl-org/SDL/issues/7975
The following was run on a machine with a 7900 XTX and Mesa 23.1.4:
$ nix shell nixpkgs#mesa-demos -c glxinfo | rg '(OpenGL version string:|Device:)'
Device: llvmpipe (LLVM 15.0.7, 256 bits) (0xffffffff)
OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.1.4
$ nix shell nixpkgs#pkgsi686Linux.mesa-demos -c glxinfo | rg '(OpenGL version string:|Device:)'
Device: llvmpipe (LLVM 15.0.7, 256 bits) (0xffffffff)
OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.1.4
Downgrading to Mesa 23.1.3 fixes this:
$ nix shell nixpkgs#mesa-demos -c glxinfo | rg '(OpenGL version string:|Device:)'
Device: AMD Radeon RX 7900 XTX (gfx1100, LLVM 15.0.7, DRM 3.52, 6.4.9) (0x744c)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.3
$ nix shell nixpkgs#pkgsi686Linux.mesa-demos -c glxinfo | rg '(OpenGL version string:|Device:)'
Device: AMD Radeon RX 7900 XTX (gfx1100, LLVM 15.0.7, DRM 3.52, 6.4.9) (0x744c)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.3
Upgrading to Mesa 23.1.5 does not fix it. I did not test Mesa's master branch.