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> (cherry picked from commit97baa27dad) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41269>
This commit is contained in:
parent
b7560252e4
commit
df7aa1241b
2 changed files with 3 additions and 3 deletions
|
|
@ -2484,7 +2484,7 @@
|
|||
"description": "freedreno/drm/virtio: Fix wait_fence ret ordering",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "441f01e778184be8e5f99d3c40f47ee49402dd03",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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