diff options
author | Eric Anholt <[email protected]> | 2018-08-07 12:15:03 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-08-07 17:00:49 -0700 |
commit | cfe69d0aaafadaaaca98517bc33307fba68197ba (patch) | |
tree | 2bd050580dc5e1ea4ec6c932c24295752755ad24 /src/gallium | |
parent | 69158c452bb39cd3d12110dd623aff09e771fa77 (diff) |
vc4: Fix vc4_fence_server_sync() on pre-syncobj kernels.
We won't have an FD if we're just having the server wait on a fence
created by eglCreateSyncKHR(). Our seqno fences will happen in order, so
server-side waits are no-ops in that case. Fixes
dEQP-EGL.functional.sharing.gles2.multithread.simple_egl_server_sync.buffers.gen_delete
Fixes: b0acc3a5628c ("broadcom/vc4: Native fence fd support")
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_fence.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_fence.c b/src/gallium/drivers/vc4/vc4_fence.c index fac9df34d4f..0dbfbe966b8 100644 --- a/src/gallium/drivers/vc4/vc4_fence.c +++ b/src/gallium/drivers/vc4/vc4_fence.c @@ -121,7 +121,8 @@ vc4_fence_server_sync(struct pipe_context *pctx, struct vc4_context *vc4 = vc4_context(pctx); struct vc4_fence *fence = vc4_fence(pfence); - sync_accumulate("vc4", &vc4->in_fence_fd, fence->fd); + if (fence->fd >= 0) + sync_accumulate("vc4", &vc4->in_fence_fd, fence->fd); } static int |