summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600_translate.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-02-08 15:21:35 +0100
committerMarek Olšák <maraeo@gmail.com>2011-02-08 16:35:02 +0100
commit467023e8080489abeff53e18ac83560eaf851827 (patch)
tree6286e1ba09abdf696567739c1d7323e204a7e48e /src/gallium/drivers/r600/r600_translate.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_translate.c')
-rw-r--r--src/gallium/drivers/r600/r600_translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_translate.c b/src/gallium/drivers/r600/r600_translate.c
index a980eac95e..7482d15e12 100644
--- a/src/gallium/drivers/r600/r600_translate.c
+++ b/src/gallium/drivers/r600/r600_translate.c
@@ -41,7 +41,7 @@ void r600_translate_index_buffer(struct r600_pipe_context *r600,
switch (*index_size) {
case 1:
- u_upload_alloc(r600->upload_ib, 0, count * 2,
+ u_upload_alloc(r600->vbuf_mgr->uploader, 0, count * 2,
&out_offset, &out_buffer, &flushed, &ptr);
util_shorten_ubyte_elts_to_userptr(