fix return value for syncobj wait
otherwise -ETIME is missed. Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>main
parent
b1e63d9ee6
commit
bde3b9b689
|
@ -4278,7 +4278,7 @@ int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles,
|
||||||
|
|
||||||
ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args);
|
ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return -errno;
|
||||||
|
|
||||||
if (first_signaled)
|
if (first_signaled)
|
||||||
*first_signaled = args.first_signaled;
|
*first_signaled = args.first_signaled;
|
||||||
|
|
Loading…
Reference in New Issue