iris: Fix return of iris_wait_syncobj()
iris_wait_syncobj() succeed if IOCTL return is 0 otherwise it failled. Cc: mesa-stable Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27500> (cherry picked from commit 138303fb9dbad7754b109ca846a17799cc0dc1d5)
This commit is contained in:
parent
6e96c0df97
commit
7d78a9b36b
2 changed files with 3 additions and 3 deletions
|
|
@ -2874,7 +2874,7 @@
|
|||
"description": "iris: Fix return of iris_wait_syncobj()",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ clear_stale_syncobjs(struct iris_batch *batch)
|
|||
struct iris_batch_fence, i);
|
||||
assert(fence->flags & IRIS_BATCH_FENCE_WAIT);
|
||||
|
||||
if (iris_wait_syncobj(bufmgr, *syncobj, 0))
|
||||
if (iris_wait_syncobj(bufmgr, *syncobj, 0) == false)
|
||||
continue;
|
||||
|
||||
/* This sync object has already passed, there's no need to continue
|
||||
|
|
@ -225,7 +225,7 @@ iris_wait_syncobj(struct iris_bufmgr *bufmgr,
|
|||
.count_handles = 1,
|
||||
.timeout_nsec = timeout_nsec,
|
||||
};
|
||||
return intel_ioctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args);
|
||||
return intel_ioctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args) == 0;
|
||||
}
|
||||
|
||||
#define CSI "\e["
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue