From: Dave Airlie Date: Mon, 8 Jun 2020 02:30:27 +0000 (+1000) Subject: util/disk_cache: add fallback for disk_cache_get_function_identifier X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=8735e96c5373a441757fbb4c0645cb3fdccc748a 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: --- 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. */