util/primconvert: pass index bias through
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 4 Dec 2014 05:36:00 +0000 (00:36 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 5 Dec 2014 12:23:48 +0000 (07:23 -0500)
The index_bias (aka base_vertex) applies to the downstream draw just as
much, since the actual index values are never modified.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/indices/u_primconvert.c

index 0b029c97f2c607b1ff13f4d81d3cd5915ef8f0a8..95a24785c11c9149ced5f50e01e2f92db6d6235f 100644 (file)
@@ -124,6 +124,7 @@ util_primconvert_draw_vbo(struct primconvert_context *pc,
    new_info.indexed = true;
    new_info.min_index = info->min_index;
    new_info.max_index = info->max_index;
+   new_info.index_bias = info->index_bias;
 
    if (info->indexed) {
       u_index_translator(pc->primtypes_mask,