projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
456e810
)
util/disk_cache: add fallback for disk_cache_get_function_identifier
author
Dave Airlie
<airlied@redhat.com>
Mon, 8 Jun 2020 02:30:27 +0000
(12:30 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 10 Jun 2020 20:05:28 +0000
(06:05 +1000)
Otherwise drivers need to have a ifdef on windows, easier to fix
here hopefully.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5049>
src/util/disk_cache.h
patch
|
blob
|
history
diff --git
a/src/util/disk_cache.h
b/src/util/disk_cache.h
index 09b316e6e8d0600e35c224dcea923d7b5d4bf1e3..29fb37cea1100f1111fd706cf243288e0f286759 100644
(file)
--- a/
src/util/disk_cache.h
+++ b/
src/util/disk_cache.h
@@
-132,6
+132,12
@@
disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx)
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. */