From 77c6ea959471d931e2b13448c7a62f689ce66376 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Tue, 5 Apr 2022 09:06:16 +0200 Subject: [PATCH] [Desktop/Mesa] Add GLSL cache dir variable Older version of Mesa do not recognize MESA_SHADER_CACHE_DIR --- desktop.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop.nix b/desktop.nix index 2abb931..a1d7ecc 100644 --- a/desktop.nix +++ b/desktop.nix @@ -172,6 +172,7 @@ in { "__GL_SHADER_DISK_CACHE_PATH" = cfg.graphics.shaderCache.path + "/nvidia" ; "MESA_SHADER_CACHE_MAX_SIZE" = "50G"; # Put large-enough value. Default is only 1G "MESA_SHADER_CACHE_DIR" = cfg.graphics.shaderCache.path + "/mesa"; + "MESA_GLSL_CACHE_DIR" = cfg.graphics.shaderCache.path + "/mesa"; }; systemd.tmpfiles.rules = [