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: d1934e44fc ("panvk: Implement occlusion queries for JM")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
CID: 1635021
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32380>
This commit is contained in:
Erik Faye-Lund 2024-11-27 17:12:43 +01:00 committed by Marge Bot
parent 22985caf3f
commit 2c6bc9615d

View file

@ -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))