From 8735e96c5373a441757fbb4c0645cb3fdccc748a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 8 Jun 2020 12:30:27 +1000 Subject: [PATCH] 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 Part-of: --- 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. */ -- 2.30.2