diff options
author | Marek Olšák <[email protected]> | 2011-10-26 02:17:52 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-10-26 15:15:57 +0200 |
commit | 344039d81d3cc079dd73b3b703ff613c344904e0 (patch) | |
tree | d2f600001ba4cf12c15e995e830d60d74c860c74 /src/gallium/drivers/r600/r600_buffer.c | |
parent | 20a20c781ac2143e92807fa8dfab086a5b7c1d53 (diff) |
r600g: cleanup draw_vbo and add comments
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index a116defe0d5..f1b69565fd5 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -209,16 +209,14 @@ struct pipe_resource *r600_user_buffer_create(struct pipe_screen *screen, return &rbuffer->b.b.b; } -void r600_upload_index_buffer(struct r600_pipe_context *rctx, struct r600_drawl *draw) +void r600_upload_index_buffer(struct r600_pipe_context *rctx, + struct pipe_index_buffer *ib, unsigned count) { - struct r600_resource *rbuffer = r600_resource(draw->index_buffer); + struct r600_resource *rbuffer = r600_resource(ib->buffer); boolean flushed; - u_upload_data(rctx->vbuf_mgr->uploader, 0, - draw->info.count * draw->index_size, - rbuffer->b.user_ptr, - &draw->index_buffer_offset, - &draw->index_buffer, &flushed); + u_upload_data(rctx->vbuf_mgr->uploader, 0, count * ib->index_size, + rbuffer->b.user_ptr, &ib->offset, &ib->buffer, &flushed); } void r600_upload_const_buffer(struct r600_pipe_context *rctx, struct r600_resource **rbuffer, |