diff options
author | Timothy Arceri <[email protected]> | 2017-05-20 11:06:25 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-05-23 09:09:43 +1000 |
commit | 0bbcfbfc0b35c7fa59441006adb1f69519a7df8f (patch) | |
tree | ba4aa3c4990f96b8cf184a5e554b58e0d3c0c57d /src/util/disk_cache.h | |
parent | d970f773f4d72814721f6f58a71c307a608ab30d (diff) |
util/disk_cache: add new driver_flags param to cache keys
This will be used for things such as adding driver specific environment
variables to the key. Allowing us to set environment vars that change
the shader and not have the driver ignore them if it finds existing
shaders in the cache.
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/util/disk_cache.h')
-rw-r--r-- | src/util/disk_cache.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/disk_cache.h b/src/util/disk_cache.h index 2bb1cf537d0..72f44638a55 100644 --- a/src/util/disk_cache.h +++ b/src/util/disk_cache.h @@ -93,7 +93,8 @@ disk_cache_get_function_timestamp(void *ptr, uint32_t* timestamp) * assistance in computing SHA-1 signatures. */ struct disk_cache * -disk_cache_create(const char *gpu_name, const char *timestamp); +disk_cache_create(const char *gpu_name, const char *timestamp, + uint64_t driver_flags); /** * Destroy a cache object, (freeing all associated resources). @@ -171,7 +172,8 @@ disk_cache_compute_key(struct disk_cache *cache, const void *data, size_t size, #else static inline struct disk_cache * -disk_cache_create(const char *gpu_name, const char *timestamp) +disk_cache_create(const char *gpu_name, const char *timestamp, + uint64_t driver_flags) { return NULL; } |