summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_buffer.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-02-08 15:21:35 +0100
committerMarek Olšák <[email protected]>2011-02-08 16:35:02 +0100
commit467023e8080489abeff53e18ac83560eaf851827 (patch)
tree6286e1ba09abdf696567739c1d7323e204a7e48e /src/gallium/drivers/r600/r600_buffer.c
parent80424700574e128070f457d79e1920d512a1efda (diff)
r600g: use the same upload buffer for vertices, indices, and constants
This should reduce memory consumption.
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r--src/gallium/drivers/r600/r600_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c
index 0a0e3db854a..7483a5292bc 100644
--- a/src/gallium/drivers/r600/r600_buffer.c
+++ b/src/gallium/drivers/r600/r600_buffer.c
@@ -207,7 +207,7 @@ void r600_upload_index_buffer(struct r600_pipe_context *rctx, struct r600_drawl
struct r600_resource_buffer *rbuffer = r600_buffer(draw->index_buffer);
boolean flushed;
- u_upload_data(rctx->upload_ib, 0,
+ u_upload_data(rctx->vbuf_mgr->uploader, 0,
draw->info.count * draw->index_size,
rbuffer->r.b.user_ptr,
&draw->index_buffer_offset,
@@ -224,7 +224,7 @@ void r600_upload_const_buffer(struct r600_pipe_context *rctx, struct r600_resour
*rbuffer = NULL;
- u_upload_data(rctx->upload_const, 0, size, ptr, const_offset,
+ u_upload_data(rctx->vbuf_mgr->uploader, 0, size, ptr, const_offset,
(struct pipe_resource**)rbuffer, &flushed);
} else {
*const_offset = 0;