From 0f60c6616e93cba72bff4fbfedb72a753ef78e05 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 16 Mar 2015 11:46:20 -0700 Subject: glsl: Switch to disable-by-default for the GLSL shader cache The shader cache is expected to be developed incrementally over a fairly long series of commits. For that period of instability, we require users to opt into the shader cache by setting: MESA_GLSL_CACHE_ENABLE=1 In the future, when the shader cache is complete, we can revert this commit so that the cache will be on by default. The user can always disable the cache with MESA_GLSL_CACHE_DISABLE=1. That functionality is not affected by this commit, (nor will it be affected by the future revert). Reviewed-by: Eric Anholt --- src/compiler/glsl/tests/cache_test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/compiler/glsl/tests') 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(); -- cgit v1.2.3