Mesa (master): nvc0: release 3d bufctx after drawing

Ben Skeggs darktama at kemper.freedesktop.org
Tue Nov 12 22:37:42 UTC 2013


Module: Mesa
Branch: master
Commit: c944bde5bee6097fd42eed23d293e021df76f6d7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c944bde5bee6097fd42eed23d293e021df76f6d7

Author: Ben Skeggs <bskeggs at redhat.com>
Date:   Tue Nov 12 17:58:18 2013 +1000

nvc0: release 3d bufctx after drawing

Signed-off-by: Ben Skeggs <bskeggs at redhat.com>

---

 src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c b/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
index c4bc7dc..490d16e 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
@@ -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);
 }




More information about the mesa-commit mailing list