projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: Mark util_format_description() as a const function.
[mesa.git]
/
src
/
util
/
disk_cache.h
diff --git
a/src/util/disk_cache.h
b/src/util/disk_cache.h
index 2a147cba615b986eb05c7b13df2d06d820e66489..29fb37cea1100f1111fd706cf243288e0f286759 100644
(file)
--- a/
src/util/disk_cache.h
+++ b/
src/util/disk_cache.h
@@
-91,7
+91,7
@@
disk_cache_format_hex_id(char *buf, const uint8_t *hex_id, unsigned size)
return buf;
}
return buf;
}
-#ifdef HAVE_DL
FCN_H
+#ifdef HAVE_DL
ADDR
static inline bool
disk_cache_get_function_timestamp(void *ptr, uint32_t* timestamp)
{
static inline bool
disk_cache_get_function_timestamp(void *ptr, uint32_t* timestamp)
{
@@
-132,6
+132,12
@@
disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx)
return false;
return true;
}
return false;
return true;
}
+#else
+static inline bool
+disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx)
+{
+ return false;
+}
#endif
/* Provide inlined stub functions if the shader cache is disabled. */
#endif
/* Provide inlined stub functions if the shader cache is disabled. */
@@
-174,6
+180,12
@@
disk_cache_create(const char *gpu_name, const char *timestamp,
void
disk_cache_destroy(struct disk_cache *cache);
void
disk_cache_destroy(struct disk_cache *cache);
+/* Wait for all previous disk_cache_put() calls to be processed (used for unit
+ * testing).
+ */
+void
+disk_cache_wait_for_idle(struct disk_cache *cache);
+
/**
* Remove the item in the cache under the name \key.
*/
/**
* Remove the item in the cache under the name \key.
*/