d3d12: Fix Linux fence wait return value

zero is for success, nonzero is failure.

Fixes: 0b60d6a2 ("d3d12: Support Linux eventfds for fences")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12268>
This commit is contained in:
Jesse Natalie 2021-08-07 19:27:41 -07:00 committed by Marge Bot
parent 5d0712b185
commit accd8326c5
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ static bool
wait_event(HANDLE event, int event_fd, uint64_t timeout_ns)
{
int timeout_ms = (timeout_ns == PIPE_TIMEOUT_INFINITE) ? -1 : timeout_ns / 1000000;
return sync_wait(event_fd, timeout_ms);
return sync_wait(event_fd, timeout_ms) == 0;
}
#endif