From 2c6bc9615d441c30826357a83231b6cc45a21cb6 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 27 Nov 2024 17:12:43 +0100 Subject: [PATCH] panvk: correct signedness of timestamps These functions returns signed values, so we shouldn't use an unsigned variable to store one of them in. Fixes: d1934e44fc8 ("panvk: Implement occlusion queries for JM") Reviewed-by: Boris Brezillon Reviewed-by: Mary Guillemard CID: 1635021 Part-of: --- src/panfrost/vulkan/panvk_vX_query_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/vulkan/panvk_vX_query_pool.c b/src/panfrost/vulkan/panvk_vX_query_pool.c index c61f9fb3612..87295fb3cc3 100644 --- a/src/panfrost/vulkan/panvk_vX_query_pool.c +++ b/src/panfrost/vulkan/panvk_vX_query_pool.c @@ -129,7 +129,7 @@ static VkResult panvk_query_wait_for_available(struct panvk_device *dev, struct panvk_query_pool *pool, uint32_t query) { - uint64_t abs_timeout_ns = os_time_get_absolute_timeout(PANVK_QUERY_TIMEOUT); + int64_t abs_timeout_ns = os_time_get_absolute_timeout(PANVK_QUERY_TIMEOUT); while (os_time_get_nano() < abs_timeout_ns) { if (panvk_query_is_available(pool, query))