fd_context_flush(pctx, NULL, 0);
}
+static void
+fd_memory_barrier(struct pipe_context *pctx, unsigned flags)
+{
+ fd_context_flush(pctx, NULL, 0);
+ /* TODO do we need to check for persistently mapped buffers and fd_bo_cpu_prep()?? */
+}
+
/**
* emit marker string as payload of a no-op packet, which can be
* decoded by cffdump.
pctx->create_fence_fd = fd_create_fence_fd;
pctx->fence_server_sync = fd_fence_server_sync;
pctx->texture_barrier = fd_texture_barrier;
+ pctx->memory_barrier = fd_memory_barrier;
pctx->stream_uploader = u_upload_create_default(pctx);
if (!pctx->stream_uploader)