diff options
author | Rob Clark <robclark@freedesktop.org> | 2013-10-25 15:22:06 -0400 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2013-10-29 16:49:43 -0400 |
commit | 28f3f8d413f6bf29f051d54479d9ae90bb16a55e (patch) | |
tree | 723e5489d29c154bf2e6465d1af8701211823307 /src/gallium/drivers | |
parent | 5127436a4a1a7fb56acbd2934318d3053f37af68 (diff) |
gallium/auxiliary/indices: add start param
Add 'start' parameter to generator/translator.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_draw_arrays.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_draw_elements.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_draw_arrays.c b/src/gallium/drivers/svga/svga_draw_arrays.c index 5f03483390f..89a5dc1da77 100644 --- a/src/gallium/drivers/svga/svga_draw_arrays.c +++ b/src/gallium/drivers/svga/svga_draw_arrays.c @@ -58,7 +58,7 @@ generate_indices(struct svga_hwtnl *hwtnl, if (dst_map == NULL) goto fail; - generate(nr, dst_map); + generate(0, nr, dst_map); pipe_buffer_unmap(pipe, transfer); diff --git a/src/gallium/drivers/svga/svga_draw_elements.c b/src/gallium/drivers/svga/svga_draw_elements.c index b68dad0c3bb..fb5f1c91b29 100644 --- a/src/gallium/drivers/svga/svga_draw_elements.c +++ b/src/gallium/drivers/svga/svga_draw_elements.c @@ -61,7 +61,7 @@ translate_indices(struct svga_hwtnl *hwtnl, struct pipe_resource *src, if (dst_map == NULL) goto fail; - translate((const char *) src_map + offset, nr, dst_map); + translate((const char *) src_map + offset, 0, nr, dst_map); pipe_buffer_unmap(pipe, src_transfer); pipe_buffer_unmap(pipe, dst_transfer); |