mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 12:00:41 +02:00
tu/kgsl: Fix sync_wait'd FD in kgsl_syncobj_wait
The FD being waited on in `kgsl_syncobj_wait` was the device FD instead of the FD of the syncpoint, this was entirely incorrect and would result in waiting on FD kgsl syncobjs being entirely broken. Signed-off-by: Mark Collins <mark@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27267>
This commit is contained in:
parent
a3a1a8b1d0
commit
5a6a55fbbe
1 changed files with 1 additions and 1 deletions
|
|
@ -529,7 +529,7 @@ kgsl_syncobj_wait(struct tu_device *device,
|
|||
}
|
||||
|
||||
case KGSL_SYNCOBJ_STATE_FD: {
|
||||
int ret = sync_wait(device->fd, get_relative_ms(abs_timeout_ns));
|
||||
int ret = sync_wait(s->fd, get_relative_ms(abs_timeout_ns));
|
||||
if (ret) {
|
||||
assert(errno == ETIME);
|
||||
return VK_TIMEOUT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue