Mesa (master): util/disk_cache: add fallback for disk_cache_get_function_identifier

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 10 22:26:12 UTC 2020


Module: Mesa
Branch: master
Commit: 8735e96c5373a441757fbb4c0645cb3fdccc748a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8735e96c5373a441757fbb4c0645cb3fdccc748a

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Jun  8 12:30:27 2020 +1000

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 <tarceri at itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5049>

---

 src/util/disk_cache.h | 6 ++++++
 1 file changed, 6 insertions(+)

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. */



More information about the mesa-commit mailing list