nvc0: release 3d bufctx after drawing
authorBen Skeggs <bskeggs@redhat.com>
Tue, 12 Nov 2013 07:58:18 +0000 (17:58 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 12 Nov 2013 22:09:29 +0000 (08:09 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c

index c4bc7dc693bf4fc8c4cef68befe36cbe3f1db5ab..490d16eda031ede1fcf93ab8adb7b19c1dc77f77 100644 (file)
@@ -832,6 +832,7 @@ nvc0_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
    if (nvc0->state.vbo_mode) {
       nvc0_push_vbo(nvc0, info);
       push->kick_notify = nvc0_default_kick_notify;
+      nouveau_pushbuf_bufctx(push, NULL);
       return;
    }
 
@@ -888,4 +889,6 @@ nvc0_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
    push->kick_notify = nvc0_default_kick_notify;
 
    nvc0_release_user_vbufs(nvc0);
+
+   nouveau_pushbuf_bufctx(push, NULL);
 }