コード例 #1
0
ファイル: nv50_context.c プロジェクト: shines77/Mesa-3D
static void
nv50_flush(struct pipe_context *pipe,
           struct pipe_fence_handle **fence,
           unsigned flags)
{
   struct nouveau_screen *screen = nouveau_screen(pipe->screen);

   if (fence)
      nouveau_fence_ref(screen->fence.current, (struct nouveau_fence **)fence);

   PUSH_KICK(screen->pushbuf);

   nouveau_context_update_frame_stats(nouveau_context(pipe));
}
コード例 #2
0
ファイル: nvc0_context.c プロジェクト: fourks/mesa-mesa
static void
nvc0_flush(struct pipe_context *pipe,
           struct pipe_fence_handle **fence,
           unsigned flags)
{
    struct nvc0_context *nvc0 = nvc0_context(pipe);
    struct nouveau_screen *screen = &nvc0->screen->base;

    if (fence)
        nouveau_fence_ref(screen->fence.current, (struct nouveau_fence **)fence);

    PUSH_KICK(nvc0->base.pushbuf); /* fencing handled in kick_notify */

    nouveau_context_update_frame_stats(&nvc0->base);
}