summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_push.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-01-02 22:39:50 +0100
committerChristoph Bumiller <[email protected]>2011-01-04 16:14:38 +0100
commitc024c1d75fdce72fe2de2d6b987b796fc9561115 (patch)
tree423b8ad31e96258e13375c0b81db3be6b39364cb /src/gallium/drivers/nvc0/nvc0_push.c
parente1e29395df64b763e9de09eca1039a3c2ebcec54 (diff)
nvc0: fix resource unmap after vertex push
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_push.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_push.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_push.c b/src/gallium/drivers/nvc0/nvc0_push.c
index 779a4775996..ccbb776447f 100644
--- a/src/gallium/drivers/nvc0/nvc0_push.c
+++ b/src/gallium/drivers/nvc0/nvc0_push.c
@@ -201,7 +201,6 @@ void
nvc0_push_vbo(struct nvc0_context *nvc0, const struct pipe_draw_info *info)
{
struct push_context ctx;
- struct pipe_transfer *transfer = NULL;
unsigned i, index_size;
unsigned inst = info->instance_count;
@@ -267,12 +266,8 @@ nvc0_push_vbo(struct nvc0_context *nvc0, const struct pipe_draw_info *info)
}
if (info->indexed)
- pipe_buffer_unmap(&nvc0->pipe, transfer);
+ nvc0_resource_unmap(nvc0_resource(nvc0->idxbuf.buffer));
- for (i = 0; i < nvc0->num_vtxbufs; ++i) {
- struct nvc0_resource *res = nvc0_resource(nvc0->vtxbuf[i].buffer);
-
- if (res->bo)
- nouveau_bo_unmap(res->bo);
- }
+ for (i = 0; i < nvc0->num_vtxbufs; ++i)
+ nvc0_resource_unmap(nvc0_resource(nvc0->vtxbuf[i].buffer));
}