mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
freedreno/drm/virtio: Fix wait_fence ret ordering
ret was read after the timeout check, so breaking on timeout returned 0
instead of the actual fence status, potentially reporting a signaled
fence when it was still pending.
Fixes: 441f01e778 ("freedreno/drm/virtio: Drop blocking in host")
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41108>
This commit is contained in:
parent
dad72b414b
commit
97baa27dad
1 changed files with 2 additions and 2 deletions
|
|
@ -138,11 +138,11 @@ virtio_pipe_wait(struct fd_pipe *pipe, const struct fd_fence *fence, uint64_t ti
|
|||
if (ret)
|
||||
goto out;
|
||||
|
||||
ret = rsp->ret;
|
||||
|
||||
if ((timeout != OS_TIMEOUT_INFINITE) &&
|
||||
(os_time_get_nano() >= end_time))
|
||||
break;
|
||||
|
||||
ret = rsp->ret;
|
||||
} while (ret == -ETIMEDOUT);
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue