summaryrefslogtreecommitdiffstats
path: root/src/util/disk_cache.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-02-06 12:56:08 +1100
committerTimothy Arceri <[email protected]>2017-02-17 11:18:43 +1100
commit3342ce452cf33dc70ffad03b676579e0631182b3 (patch)
tree7b58780247b71783890283ef905710efedafc91c /src/util/disk_cache.h
parent87009681a53436700a477c45cb13272fa4a881fd (diff)
util/disk_cache: allow drivers to pass a directory structure
In order to avoid costly fallback recompiles when cache items are created with an old version of Mesa or for a different gpu on the same system we want to create directories that look like this: ./{TIMESTAMP}_{LLVM_TIMESTAMP}/{GPU_ID} Note: The disk cache util will take a single timestamp string, it is up to the backend to concatenate the llvm string with the mesa string if applicable. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/util/disk_cache.h')
-rw-r--r--src/util/disk_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/disk_cache.h b/src/util/disk_cache.h
index 1f2bf3d9e7d..39062f40a24 100644
--- a/src/util/disk_cache.h
+++ b/src/util/disk_cache.h
@@ -69,7 +69,7 @@ struct disk_cache;
* assistance in computing SHA-1 signatures.
*/
struct disk_cache *
-disk_cache_create(void);
+disk_cache_create(const char *gpu_name, const char *timestamp);
/**
* Destroy a cache object, (freeing all associated resources).
@@ -140,7 +140,7 @@ disk_cache_has_key(struct disk_cache *cache, cache_key key);
#else
static inline struct disk_cache *
-disk_cache_create(void)
+disk_cache_create(const char *gpu_name, const char *timestamp)
{
return NULL;
}