diff options
author | Brian Paul <brianp@vmware.com> | 2012-05-25 09:44:53 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-05-31 09:40:35 -0600 |
commit | 185ed2105829d6f5eb19edb9abbf0d7977e157c3 (patch) | |
tree | 91716430893902305c60756e64b2ec8328895640 /src/gallium/drivers/nv30 | |
parent | 151bf6e6cf8f9de4067cfcf15f6ac448ff295533 (diff) | |
download | external_mesa3d-185ed2105829d6f5eb19edb9abbf0d7977e157c3.zip external_mesa3d-185ed2105829d6f5eb19edb9abbf0d7977e157c3.tar.gz external_mesa3d-185ed2105829d6f5eb19edb9abbf0d7977e157c3.tar.bz2 |
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.
Diffstat (limited to 'src/gallium/drivers/nv30')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_draw.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv30/nv30_draw.c b/src/gallium/drivers/nv30/nv30_draw.c index 29e6395..46e8536 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); |