util/disk_cache: Move struct cache_entry_file_data to the disk_cache_os.h

Relocate struct cache_entry_file_data to the header file, making it
accessible to the cache testing code. This is a preparatory step towards
addition of the new Mesa-DB cache type.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16888>
This commit is contained in:
Dmitry Osipenko 2022-06-27 19:52:28 +03:00 committed by Marge Bot
parent d86335dd49
commit 517e523a2a
2 changed files with 5 additions and 5 deletions

View file

@ -36,11 +36,6 @@
#include "util/disk_cache.h"
#include "util/disk_cache_os.h"
struct cache_entry_file_data {
uint32_t crc32;
uint32_t uncompressed_size;
};
#if DETECT_OS_WINDOWS
bool

View file

@ -80,6 +80,11 @@ struct disk_cache {
bool compression_disabled;
};
struct cache_entry_file_data {
uint32_t crc32;
uint32_t uncompressed_size;
};
struct disk_cache_put_job {
struct util_queue_fence fence;