Module: Mesa
Branch: master
Commit: 1334295f29cfb9f5e0ee49afae131ce03455c2f2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1334295f29cfb9f5e0ee49afae131ce03455c2f2

Author: Eric Anholt <[email protected]>
Date:   Tue Jun 19 11:24:56 2018 -0700

v3d: Fix return value from fence_finish.

We needed to convert from a -errno to a boolean success value.  Fixes:

GTF-GLES3.gtf.GL3Tests.sync.sync_functionality_clientwaitsync_flush
GTF-GLES3.gtf.GL3Tests.sync.sync_functionality_clientwaitsync_signaled

---

 src/gallium/drivers/v3d/v3d_fence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/v3d/v3d_fence.c 
b/src/gallium/drivers/v3d/v3d_fence.c
index fb2e430610..47b5818cb3 100644
--- a/src/gallium/drivers/v3d/v3d_fence.c
+++ b/src/gallium/drivers/v3d/v3d_fence.c
@@ -70,7 +70,7 @@ v3d_fence_finish(struct pipe_screen *pscreen,
         struct v3d_screen *screen = v3d_screen(pscreen);
         struct v3d_fence *f = (struct v3d_fence *)pf;
 
-        return drmSyncobjWait(screen->fd, &f->sync, 1, timeout_ns, 0, NULL);
+        return drmSyncobjWait(screen->fd, &f->sync, 1, timeout_ns, 0, NULL) == 
0;
 }
 
 struct v3d_fence *

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to