mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:b0acc3a562("broadcom/vc4: Native fence fd support") (cherry picked from commitcfe69d0aaa)
This commit is contained in:
parent
9dacf10ca8
commit
1378f33142
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue