summaryrefslogtreecommitdiff
path: root/lib/mesa/src/util/disk_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/util/disk_cache.c')
-rw-r--r--lib/mesa/src/util/disk_cache.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/mesa/src/util/disk_cache.c b/lib/mesa/src/util/disk_cache.c
index d9769cda0..c4486d75b 100644
--- a/lib/mesa/src/util/disk_cache.c
+++ b/lib/mesa/src/util/disk_cache.c
@@ -126,11 +126,19 @@ disk_cache_create(const char *gpu_name, const char *driver_id,
max_size = 0;
- max_size_str = getenv("MESA_GLSL_CACHE_MAX_SIZE");
-
- #ifdef MESA_GLSL_CACHE_MAX_SIZE
+ max_size_str = getenv("MESA_SHADER_CACHE_MAX_SIZE");
+
+ if (!max_size_str) {
+ max_size_str = getenv("MESA_GLSL_CACHE_MAX_SIZE");
+ if (max_size_str)
+ fprintf(stderr,
+ "*** MESA_GLSL_CACHE_MAX_SIZE is deprecated; "
+ "use MESA_SHADER_CACHE_MAX_SIZE instead ***\n");
+ }
+
+ #ifdef MESA_SHADER_CACHE_MAX_SIZE
if( !max_size_str ) {
- max_size_str = MESA_GLSL_CACHE_MAX_SIZE;
+ max_size_str = MESA_SHADER_CACHE_MAX_SIZE;
}
#endif