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:
parent
5d0712b185
commit
accd8326c5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue