mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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:
parent
22985caf3f
commit
2c6bc9615d
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue