diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-02-08 16:34:22 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-02-08 16:35:02 +0100 |
commit | b541a3c4c0a125087fa9e1e0d35db019c36fb0e9 (patch) | |
tree | dfb8c174ddd5518b1356aa5e0cc502ddc6c4464e /src/gallium/drivers/r300/r300_render_translate.c | |
parent | 467023e8080489abeff53e18ac83560eaf851827 (diff) | |
download | external_mesa3d-b541a3c4c0a125087fa9e1e0d35db019c36fb0e9.zip external_mesa3d-b541a3c4c0a125087fa9e1e0d35db019c36fb0e9.tar.gz external_mesa3d-b541a3c4c0a125087fa9e1e0d35db019c36fb0e9.tar.bz2 |
r300g: use the same upload buffer for vertices and indices
Diffstat (limited to 'src/gallium/drivers/r300/r300_render_translate.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_render_translate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_render_translate.c b/src/gallium/drivers/r300/r300_render_translate.c index 76d012d..dbc64eb 100644 --- a/src/gallium/drivers/r300/r300_render_translate.c +++ b/src/gallium/drivers/r300/r300_render_translate.c @@ -37,7 +37,7 @@ void r300_translate_index_buffer(struct r300_context *r300, switch (*index_size) { case 1: - u_upload_alloc(r300->upload_ib, 0, count * 2, + u_upload_alloc(r300->vbuf_mgr->uploader, 0, count * 2, &out_offset, &out_buffer, &flushed, &ptr); util_shorten_ubyte_elts_to_userptr( @@ -52,7 +52,7 @@ void r300_translate_index_buffer(struct r300_context *r300, case 2: if (index_offset) { - u_upload_alloc(r300->upload_ib, 0, count * 2, + u_upload_alloc(r300->vbuf_mgr->uploader, 0, count * 2, &out_offset, &out_buffer, &flushed, &ptr); util_rebuild_ushort_elts_to_userptr(&r300->context, *index_buffer, @@ -67,7 +67,7 @@ void r300_translate_index_buffer(struct r300_context *r300, case 4: if (index_offset) { - u_upload_alloc(r300->upload_ib, 0, count * 4, + u_upload_alloc(r300->vbuf_mgr->uploader, 0, count * 4, &out_offset, &out_buffer, &flushed, &ptr); util_rebuild_uint_elts_to_userptr(&r300->context, *index_buffer, |