From 7f4f63622413e8d3004624ab260314b0f5f0b8e4 Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 2 Oct 2026 10:07:05 +0300 Subject: [PATCH] mesa: build with debug assertions disabled This is faster and also allows some applications that are holding things horribly wrong (*cough* SteamVR *cough*) to at least appear to function. --- pkgs/development/libraries/mesa/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index 50094b9f3ca9..f771869d3efc 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -201,6 +201,10 @@ stdenv.mkDerivation (finalAttrs: { mesonFlags = [ "--sysconfdir=/etc" + # Disable debug assertions for performance/compatibility + # https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/docs/meson.rst?ref_type=heads#options + (lib.mesonBool "b_ndebug" true) + # What to build (lib.mesonOption "platforms" (lib.concatStringsSep "," eglPlatforms)) (lib.mesonOption "gallium-drivers" (lib.concatStringsSep "," galliumDrivers))