summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-08-24 11:11:40 +1000
committerTimothy Arceri <[email protected]>2017-08-25 13:20:29 +1000
commit28b326238bcc14d372880a0e4fabcece4ffdc871 (patch)
treee3c4a979843c7499a18754276ee57b18e4285fa1 /src/compiler/glsl/tests
parent4a091b0788664f73bbb35c14d04c00cebf37e17a (diff)
util/disk_cache: rename mesa cache dir and introduce cache versioning
Steam is already analysing cache items, unfortunatly we did not introduce a versioning mechanism for identifying structural changes to cache entries earlier so the only way to do so is to rename the cache directory. Since we are renaming it we take the opportunity to give the directory a more meaningful name. Adding a version field to the header of cache entries will help us to avoid having to rename the directory in future. Please note this is versioning for the internal structure of the entries as defined in disk_cache.{c,h} as opposed to the structure of the data provided to the disk cache by the GLSL compiler and the various driver backends. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/compiler/glsl/tests')
-rw-r--r--src/compiler/glsl/tests/cache_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c
index af1b66fb3d4..3796ce61704 100644
--- a/src/compiler/glsl/tests/cache_test.c
+++ b/src/compiler/glsl/tests/cache_test.c
@@ -185,7 +185,8 @@ test_disk_cache_create(void)
cache = disk_cache_create("test", "make_check", 0);
expect_non_null(cache, "disk_cache_create with XDG_CACHE_HOME set");
- check_directories_created(CACHE_TEST_TMP "/xdg-cache-home/mesa");
+ check_directories_created(CACHE_TEST_TMP "/xdg-cache-home/"
+ CACHE_DIR_NAME);
disk_cache_destroy(cache);
@@ -202,7 +203,8 @@ test_disk_cache_create(void)
cache = disk_cache_create("test", "make_check", 0);
expect_non_null(cache, "disk_cache_create with MESA_GLSL_CACHE_DIR set");
- check_directories_created(CACHE_TEST_TMP "/mesa-glsl-cache-dir/mesa");
+ check_directories_created(CACHE_TEST_TMP "/mesa-glsl-cache-dir/"
+ CACHE_DIR_NAME);
disk_cache_destroy(cache);
}