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:
Mark Collins 2024-01-24 15:01:07 +00:00 committed by Marge Bot
parent a3a1a8b1d0
commit 5a6a55fbbe

View file

@ -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;