util/disk_cache: enable Mesa-DB disk cache by default

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22339>
This commit is contained in:
Daniel Schürmann
2023-04-06 16:57:31 +02:00
committed by Marge Bot
parent 5e8bb93ea3
commit bd4fbdf510
3 changed files with 27 additions and 28 deletions
+3 -3
View File
@@ -271,10 +271,10 @@ disk_cache_create(const char *gpu_name, const char *driver_id,
if (debug_get_bool_option("MESA_DISK_CACHE_SINGLE_FILE", false))
cache_type = DISK_CACHE_SINGLE_FILE;
else if (debug_get_bool_option("MESA_DISK_CACHE_DATABASE", false))
cache_type = DISK_CACHE_DATABASE;
else
else if (debug_get_bool_option("MESA_DISK_CACHE_MULTI_FILE", false))
cache_type = DISK_CACHE_MULTI_FILE;
else
cache_type = DISK_CACHE_DATABASE;
/* Create main writable cache. */
cache = disk_cache_type_create(gpu_name, driver_id, driver_flags,