[Hardware/Nvidia] fix apps not finding nvidia EGL because of bizarre default behavior of Nvidia driver

Use undocumented environment variable to fix that.
This commit is contained in:
Antoine Viallon 2024-01-24 13:42:08 +01:00
parent 69a62ddff7
commit 26edc918c0
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -131,6 +131,10 @@ in {
__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.
# Undocumented, fix for EGL not being found by Nvidia driver: https://github.com/NVIDIA/egl-wayland/issues/39#issuecomment-927288015
__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS = "/run/opengl-driver/share/egl/egl_external_platform.d";
};
};
}