diff --git a/src/panfrost/vulkan/panvk_query_pool.h b/src/panfrost/vulkan/panvk_query_pool.h index 32fea884ff7..bb8c1057d66 100644 --- a/src/panfrost/vulkan/panvk_query_pool.h +++ b/src/panfrost/vulkan/panvk_query_pool.h @@ -65,7 +65,7 @@ static uint64_t panvk_query_offset(struct panvk_query_pool *pool, uint32_t query) { assert(query < pool->vk.query_count); - return query * pool->query_stride; + return query * (uint64_t)pool->query_stride; } static uint64_t