From accd8326c5cb78788f12e3066bb6654595c23a51 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Sat, 7 Aug 2021 19:27:41 -0700 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/d3d12/d3d12_fence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/d3d12/d3d12_fence.cpp b/src/gallium/drivers/d3d12/d3d12_fence.cpp index 2772f26e691..e3b39dd584f 100644 --- a/src/gallium/drivers/d3d12/d3d12_fence.cpp +++ b/src/gallium/drivers/d3d12/d3d12_fence.cpp @@ -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