Module: Mesa Branch: main Commit: 203f9da167257379f60986b22d6b709f1f8f2a65 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=203f9da167257379f60986b22d6b709f1f8f2a65
Author: Tomeu Vizoso <[email protected]> Date: Mon Jul 5 10:00:54 2021 +0200 panvk: Initialize timestamp for disk cache Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12552> --- src/panfrost/vulkan/panvk_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/panfrost/vulkan/panvk_device.c b/src/panfrost/vulkan/panvk_device.c index 8b73a7efa21..22fca7d1798 100644 --- a/src/panfrost/vulkan/panvk_device.c +++ b/src/panfrost/vulkan/panvk_device.c @@ -45,6 +45,7 @@ #include "drm-uapi/panfrost_drm.h" #include "util/debug.h" +#include "util/disk_cache.h" #include "util/strtod.h" #include "vk_format.h" #include "vk_util.h" @@ -84,6 +85,11 @@ panvk_device_get_cache_uuid(uint16_t family, void *uuid) { uint32_t mesa_timestamp; uint16_t f = family; + + if (!disk_cache_get_function_timestamp(panvk_device_get_cache_uuid, + &mesa_timestamp)) + return -1; + memset(uuid, 0, VK_UUID_SIZE); memcpy(uuid, &mesa_timestamp, 4); memcpy((char *) uuid + 4, &f, 2);
