From 185ed2105829d6f5eb19edb9abbf0d7977e157c3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 25 May 2012 09:44:53 -0600 Subject: draw: simplify index buffer specification Replace draw_set_index_buffer() and draw_set_mapped_index_buffer() with draw_set_indexes() which simply takes a pointer and an index size. --- src/gallium/drivers/nv30/nv30_draw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/nv30') diff --git a/src/gallium/drivers/nv30/nv30_draw.c b/src/gallium/drivers/nv30/nv30_draw.c index 29e63953838..46e85362815 100644 --- a/src/gallium/drivers/nv30/nv30_draw.c +++ b/src/gallium/drivers/nv30/nv30_draw.c @@ -417,10 +417,11 @@ nv30_render_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info) pipe_buffer_map(pipe, nv30->idxbuf.buffer, PIPE_TRANSFER_UNSYNCHRONIZED | PIPE_TRANSFER_READ, &transferi); - draw_set_index_buffer(draw, &nv30->idxbuf); - draw_set_mapped_index_buffer(draw, map); + draw_set_indexes(draw, + (ubyte *) map + nv30->idxbuf.offset, + nv30->idxbuf.index_size); } else { - draw_set_mapped_index_buffer(draw, NULL); + draw_set_indexes(draw, NULL, 0); } draw_vbo(draw, info); -- cgit v1.2.3