diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/disk_cache.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index 6618a2471bc..2f138dab19b 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -225,8 +225,14 @@ disk_cache_create(const char *gpu_name, const char *timestamp) * <pwd.pw_dir>/.cache/mesa */ path = getenv("MESA_GLSL_CACHE_DIR"); - if (path && mkdir_if_needed(path) == -1) { - goto fail; + if (path) { + if (mkdir_if_needed(path) == -1) + goto fail; + + path = create_mesa_cache_dir(local, path, timestamp, + gpu_name); + if (path == NULL) + goto fail; } if (path == NULL) { |