*p = f;
}
-static boolean
+static bool
vc4_fence_finish(struct pipe_screen *pscreen,
struct pipe_context *ctx,
struct pipe_fence_handle *pf,
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