}
static struct pipe_fence_handle *
-fence_create(struct fd_context *ctx, struct fd_batch *batch, uint32_t timestamp,
- int fence_fd, int syncobj)
+fence_create(struct fd_context *ctx, struct fd_batch *batch, int fence_fd,
+ int syncobj)
{
struct pipe_fence_handle *fence;
fence->batch = batch;
fence->pipe = fd_pipe_ref(ctx->pipe);
fence->screen = ctx->screen;
- fence->timestamp = timestamp;
fence->fence_fd = fence_fd;
fence->syncobj = syncobj;
switch (type) {
case PIPE_FD_TYPE_NATIVE_SYNC:
*pfence =
- fence_create(fd_context(pctx), NULL, 0, os_dupfd_cloexec(fd), 0);
+ fence_create(fd_context(pctx), NULL, os_dupfd_cloexec(fd), 0);
break;
case PIPE_FD_TYPE_SYNCOBJ: {
int ret;
if (!ret)
close(fd);
- *pfence = fence_create(fd_context(pctx), NULL, 0, -1, syncobj);
+ *pfence = fence_create(fd_context(pctx), NULL, -1, syncobj);
break;
}
default:
struct pipe_fence_handle *
fd_fence_create(struct fd_batch *batch)
{
- return fence_create(batch->ctx, batch, 0, -1, 0);
+ return fence_create(batch->ctx, batch, -1, 0);
}
void
struct tc_unflushed_batch_token *tc_token)
{
struct pipe_fence_handle *fence =
- fence_create(fd_context(pctx), NULL, 0, -1, 0);
+ fence_create(fd_context(pctx), NULL, -1, 0);
fence->needs_signal = true;
util_queue_fence_reset(&fence->ready);
tc_unflushed_batch_token_reference(&fence->tc_token, tc_token);