From 138303fb9dbad7754b109ca846a17799cc0dc1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Tue, 6 Feb 2024 08:50:58 -0800 Subject: [PATCH] iris: Fix return of iris_wait_syncobj() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iris_wait_syncobj() succeed if IOCTL return is 0 otherwise it failled. Cc: mesa-stable Signed-off-by: José Roberto de Souza Reviewed-by: Lionel Landwerlin Part-of: --- src/gallium/drivers/iris/iris_fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_fence.c b/src/gallium/drivers/iris/iris_fence.c index da4cfd09fa4..12d1e2fcd62 100644 --- a/src/gallium/drivers/iris/iris_fence.c +++ b/src/gallium/drivers/iris/iris_fence.c @@ -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["