mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-25 12:51:00 +00:00
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@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5049>
This commit is contained in:
parent
456e8103ef
commit
8735e96c53
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user