Ejemplo n.º 1
0
static void
vg_context_flush(struct st_context_iface *stctxi, unsigned flags,
                 struct pipe_fence_handle **fence)
{
   struct vg_context *ctx = (struct vg_context *) stctxi;
   ctx->pipe->flush(ctx->pipe, flags, fence);
   if (flags & PIPE_FLUSH_RENDER_CACHE)
      vg_manager_flush_frontbuffer(ctx);
}
Ejemplo n.º 2
0
void vegaFlush(void)
{
    struct vg_context *ctx = vg_current_context();
    struct pipe_context *pipe;

    if (!ctx)
        return;

    pipe = ctx->pipe;
    pipe->flush(pipe, NULL);

    vg_manager_flush_frontbuffer(ctx);
}
Ejemplo n.º 3
0
static void
vg_context_flush(struct st_context_iface *stctxi, unsigned flags,
                 struct pipe_fence_handle **fence)
{
    struct vg_context *ctx = (struct vg_context *) stctxi;
    unsigned pipe_flags = 0;

    if (flags & ST_FLUSH_END_OF_FRAME) {
        pipe_flags |= PIPE_FLUSH_END_OF_FRAME;
    }

    ctx->pipe->flush(ctx->pipe, fence, pipe_flags);
    if (flags & ST_FLUSH_FRONT)
        vg_manager_flush_frontbuffer(ctx);
}