mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
util/disk_cache: Add NONE type
Add an explicit enum for the DISK_CACHE_NONE type so that we don't confuse with the MULTI_FILE case on android when the blob-cache is used. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22248>
This commit is contained in:
parent
afb350906e
commit
213627e94b
2 changed files with 2 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ disk_cache_type_create(const char *gpu_name,
|
|||
|
||||
/* Assume failure. */
|
||||
cache->path_init_failed = true;
|
||||
cache->type = DISK_CACHE_NONE;
|
||||
|
||||
#ifdef ANDROID
|
||||
/* Android needs the "disk cache" to be enabled for
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ extern "C" {
|
|||
#define CACHE_INDEX_MAX_KEYS (1 << CACHE_INDEX_KEY_BITS)
|
||||
|
||||
enum disk_cache_type {
|
||||
DISK_CACHE_NONE,
|
||||
DISK_CACHE_MULTI_FILE,
|
||||
DISK_CACHE_SINGLE_FILE,
|
||||
DISK_CACHE_DATABASE,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue