mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
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> (cherry picked from commitaccd8326c5)
This commit is contained in:
parent
6bbf2110db
commit
b5ebe0ec36
2 changed files with 2 additions and 2 deletions
|
|
@ -454,7 +454,7 @@
|
|||
"description": "d3d12: Fix Linux fence wait return value",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "0b60d6a24d405066c4077154095a76204c103cc1"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Reference in a new issue