Module: Mesa Branch: main Commit: d86335dd49f9e0aa27c1464067ad8a59d016ea70 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d86335dd49f9e0aa27c1464067ad8a59d016ea70
Author: Dmitry Osipenko <[email protected]> Date: Mon Jun 27 19:48:21 2022 +0300 util/disk_cache: Append to disk_cache_load_cache_index() with _foz The disk_cache_load_cache_index() is solely about the foz-db cache and we're going to add the new cache type. Append the function name with _foz postfix to improve the naming, making clear what that function is about. Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16888> --- src/util/disk_cache.c | 2 +- src/util/disk_cache_os.c | 2 +- src/util/disk_cache_os.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index 2e62688f7aa..829a9d927dc 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -119,7 +119,7 @@ disk_cache_create(const char *gpu_name, const char *driver_id, cache->compression_disabled = true; if (env_var_as_boolean("MESA_DISK_CACHE_SINGLE_FILE", false)) { - if (!disk_cache_load_cache_index(local, cache)) + if (!disk_cache_load_cache_index_foz(local, cache)) goto path_fail; } diff --git a/src/util/disk_cache_os.c b/src/util/disk_cache_os.c index cfcfbd42434..94e7e5bc17d 100644 --- a/src/util/disk_cache_os.c +++ b/src/util/disk_cache_os.c @@ -978,7 +978,7 @@ disk_cache_write_item_to_disk_foz(struct disk_cache_put_job *dc_job) } bool -disk_cache_load_cache_index(void *mem_ctx, struct disk_cache *cache) +disk_cache_load_cache_index_foz(void *mem_ctx, struct disk_cache *cache) { /* Load cache index into a hash map (from fossilise files) */ return foz_prepare(&cache->foz_db, cache->path); diff --git a/src/util/disk_cache_os.h b/src/util/disk_cache_os.h index f6111b3cc22..83f1090ca8b 100644 --- a/src/util/disk_cache_os.h +++ b/src/util/disk_cache_os.h @@ -127,7 +127,7 @@ bool disk_cache_enabled(void); bool -disk_cache_load_cache_index(void *mem_ctx, struct disk_cache *cache); +disk_cache_load_cache_index_foz(void *mem_ctx, struct disk_cache *cache); bool disk_cache_mmap_cache_index(void *mem_ctx, struct disk_cache *cache,
