OSDN Git Service

Revert "glsl: Switch to disable-by-default for the GLSL shader cache"
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 23 Feb 2017 02:09:03 +0000 (13:09 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 5 Mar 2017 22:38:07 +0000 (09:38 +1100)
This reverts commit 0f60c6616e93cba72bff4fbfedb72a753ef78e05.

Piglit and all games tested so far seem to be working without
issue. This change will allow wide user testing and we can decided
before the next release if we need to turn it off again.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/tests/cache_test.c
src/util/disk_cache.c

index c4e6e36..de92e5a 100644 (file)
@@ -428,11 +428,6 @@ 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();
index 7f24939..9a7c5c9 100644 (file)
@@ -242,13 +242,6 @@ disk_cache_create(const char *gpu_name, const char *timestamp)
    if (getenv("MESA_GLSL_CACHE_DISABLE"))
       goto fail;
 
-   /* As a temporary measure, (while the shader cache is under
-    * development, and known to not be fully functional), also require
-    * the MESA_GLSL_CACHE_ENABLE variable to be set.
-    */
-   if (!getenv("MESA_GLSL_CACHE_ENABLE"))
-      goto fail;
-
    /* Determine path for cache based on the first defined name as follows:
     *
     *   $MESA_GLSL_CACHE_DIR