util/primconvert: support instanced rendering
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 30 Nov 2014 06:20:01 +0000 (01:20 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 5 Dec 2014 12:23:48 +0000 (07:23 -0500)
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 95a24785c11c9149ced5f50e01e2f92db6d6235f..539ca538cc13d33e336190c8a7691518060677ea 100644 (file)
@@ -125,6 +125,8 @@ util_primconvert_draw_vbo(struct primconvert_context *pc,
    new_info.min_index = info->min_index;
    new_info.max_index = info->max_index;
    new_info.index_bias = info->index_bias;
+   new_info.start_instance = info->start_instance;
+   new_info.instance_count = info->instance_count;
 
    if (info->indexed) {
       u_index_translator(pc->primtypes_mask,