Module: Mesa Branch: main Commit: accd8326c5cb78788f12e3066bb6654595c23a51 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=accd8326c5cb78788f12e3066bb6654595c23a51
Author: Jesse Natalie <[email protected]> Date: Sat Aug 7 19:27:41 2021 -0700 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12268> --- 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
