mesa: add index_size_shift = log2(index_size) into _mesa_index_buffer
[mesa.git] / src / mesa / tnl / t_split.c
index d7aac10e4c8115168f31572858082c1305ea88c8..9c59380c8313584e65ea349bce9cfbe2c5798d9f 100644 (file)
@@ -106,6 +106,8 @@ _tnl_split_prims(struct gl_context *ctx,
                  const struct _mesa_index_buffer *ib,
                  GLuint min_index,
                  GLuint max_index,
+                 GLuint num_instances,
+                 GLuint base_instance,
                  tnl_draw_func draw,
                  const struct split_limits *limits)
 {
@@ -135,7 +137,8 @@ _tnl_split_prims(struct gl_context *ctx,
           * individual primitives.
           */
          _tnl_split_inplace(ctx, arrays, prim, nr_prims, ib,
-                            min_index, max_index, draw, limits);
+                            min_index, max_index, num_instances,
+                            base_instance, draw, limits);
       }
       else {
          /* Why were we called? */
@@ -149,7 +152,8 @@ _tnl_split_prims(struct gl_context *ctx,
           * otherwise try to split the individual primitives.
           */
          _tnl_split_inplace(ctx, arrays, prim, nr_prims, ib,
-                            min_index, max_index, draw, limits);
+                            min_index, max_index, num_instances,
+                            base_instance, draw, limits);
       }
       else {
          /* Why were we called? */