v3d: Fix return value from fence_finish.
authorEric Anholt <eric@anholt.net>
Tue, 19 Jun 2018 18:24:56 +0000 (11:24 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 20 Jun 2018 16:30:46 +0000 (09:30 -0700)
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

index fb2e43061044e614178efaa683a228f4e9ab6bc2..47b5818cb3b12ec8ae07946f6cf12b06fbba969e 100644 (file)
@@ -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 *