diff options
-rw-r--r-- | src/util/disk_cache.h | 6 |
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. */ |