diff options
author | Eric Anholt <[email protected]> | 2018-07-18 12:06:45 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-20 11:11:29 -0700 |
commit | 4f04bd68cfefea55c0fcddee74b46c5f8c905202 (patch) | |
tree | 37d6316c2c68057760ecd31ebb0af2cfb73dfbc3 /src/gallium/drivers | |
parent | 2f90879a34f7c542301d2728805757fbd869ff1c (diff) |
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
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_fence.c b/src/gallium/drivers/v3d/v3d_fence.c index 47b5818cb3b..850e4a74414 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) == 0; + return drmSyncobjWait(screen->fd, &f->sync, 1, timeout_ns, 0, NULL) >= 0; } struct v3d_fence * |