Commit 8f0ac3f2 authored by Jesse Natalie's avatar Jesse Natalie
Browse files

d3d12: Fix Linux fence wait return value

zero is for success, nonzero is failure.

Fixes: 0b60d6a2 ("d3d12: Support Linux eventfds for fences")
parent d2d642cc
Pipeline #376985 waiting for manual action with stages
in 9 seconds
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment