Commit 4f04bd68 authored by Eric Anholt's avatar Eric Anholt

v3d: Fix drmSyncobjWait() return value checking even more.

It tends to return >0 in the success case (I think the value is something
like "how much of the timeout remained").  Fixes
dEQP-GLES3.functional.fence_sync.client_wait_sync_finish
parent 2f90879a
......@@ -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) == 0;
return drmSyncobjWait(screen->fd, &f->sync, 1, timeout_ns, 0, NULL) >= 0;
}
struct v3d_fence *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment