aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2020-06-08 12:30:27 +1000
committerDave Airlie <[email protected]>2020-06-11 06:05:28 +1000
commit8735e96c5373a441757fbb4c0645cb3fdccc748a (patch)
treed0aa68dcb49681cc7d1f811f780b526c38729468 /src/util
parent456e8103ef5feecd1761633cd8cd3fc21652cf15 (diff)
util/disk_cache: add fallback for disk_cache_get_function_identifier
Otherwise drivers need to have a ifdef on windows, easier to fix here hopefully. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5049>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/disk_cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/disk_cache.h b/src/util/disk_cache.h
index 09b316e6e8d..29fb37cea11 100644
--- 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. */