From 69a62ddff75957141007579f46c16c47e2acbbd6 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Wed, 24 Jan 2024 13:41:27 +0100 Subject: [PATCH] [Hardware/Nvidia] Disable OpenGL threaded optimizations by default as this makes Kwin fail to launch --- hardware/nvidia/proprietary.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hardware/nvidia/proprietary.nix b/hardware/nvidia/proprietary.nix index 99e7c1f..7578a19 100644 --- a/hardware/nvidia/proprietary.nix +++ b/hardware/nvidia/proprietary.nix @@ -125,7 +125,11 @@ in { "__GL_ALLOW_UNOFFICIAL_PROTOCOL" = "1"; # allow unofficial GLX protocol if also set in Xorg conf "__GL_VRR_ALLOWED" = "1"; # Try to enable G-SYNC VRR if screen AND app is compatible "__GL_SYNC_TO_VBLANK" = toValue cfg.proprietary.vsync; - "__GL_THREADED_OPTIMIZATIONS" = toValue generalCfg.unsafeOptimizations; + + # Causes Kwin to fail + # https://github.com/ValveSoftware/gamescope/issues/526#issuecomment-1733739097 + __GL_THREADED_OPTIMIZATIONS = "0"; + # "__GL_THREADED_OPTIMIZATIONS" = toValue generalCfg.unsafeOptimizations; "KWIN_DRM_USE_EGL_STREAMS" = toValue cfg.proprietary.EGLStream; # Make KWin use EGL Streams if needed, because otherwise performance will be horrible. }; };