summaryrefslogtreecommitdiffstats
path: root/src/util/disk_cache.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-08-23 16:33:00 +1000
committerTimothy Arceri <[email protected]>2017-08-25 13:20:29 +1000
commitea2515d780a40599036ff50b572d309e69635d20 (patch)
tree59e522c374888ab726219ac72bfb5b81537fcd0b /src/util/disk_cache.h
parent07018d49dc95b0a9cf7b22c33af2286c36583e82 (diff)
glsl: pass shader source keys to the disk cache
We don't actually write them to disk here. That will happen in the following commit. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/util/disk_cache.h')
-rw-r--r--src/util/disk_cache.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/disk_cache.h b/src/util/disk_cache.h
index ef5ec2ac921..d2e4d9a69c7 100644
--- a/src/util/disk_cache.h
+++ b/src/util/disk_cache.h
@@ -141,7 +141,8 @@ disk_cache_remove(struct disk_cache *cache, const cache_key key);
*/
void
disk_cache_put(struct disk_cache *cache, const cache_key key,
- const void *data, size_t size);
+ const void *data, size_t size,
+ struct cache_item_metadata *cache_item_metadata);
/**
* Retrieve an item previously stored in the cache with the name <key>.
@@ -207,7 +208,8 @@ disk_cache_destroy(struct disk_cache *cache) {
static inline void
disk_cache_put(struct disk_cache *cache, const cache_key key,
- const void *data, size_t size)
+ const void *data, size_t size,
+ struct cache_item_metadata *cache_item_metadata)
{
return;
}