summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/cache_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/tests/cache_test.c')
-rw-r--r--src/compiler/glsl/tests/cache_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c
index 0ef05aacb26..8547141051d 100644
--- a/src/compiler/glsl/tests/cache_test.c
+++ b/src/compiler/glsl/tests/cache_test.c
@@ -388,6 +388,11 @@ main(void)
#ifdef ENABLE_SHADER_CACHE
int err;
+ /* While the shader cache is still experimental, this variable must
+ * be set or the cache does nothing.
+ */
+ setenv("MESA_GLSL_CACHE_ENABLE", "1", 1);
+
test_disk_cache_create();
test_put_and_get();