Skip to content

util: Fix the overflow check in os_time_get_absolute_timeout()

Echo J. requested to merge DodoGTA/mesa-nvk:signed-integer-hell into main

What does this MR do and why?

util: Fix the overflow check in os_time_get_absolute_timeout()

This should fix glClientWaitSync() timing out too early with a INT64_MAX
timeout on radeonsi

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11615
Fixes: d25201903df ("winsys/amdgpu: use syncobj rather than amdgpu fence")
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56447

Merge request reports

Loading