mesa/st: Update for index bias interface change.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 19 Apr 2010 16:16:57 +0000 (18:16 +0200)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 19 Apr 2010 16:16:57 +0000 (18:16 +0200)
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_draw_feedback.c

index 4f4368ac9e4cdfc30605538076f3da19107ba591..a3620359dbffd7df9a74b20bca5d5d6ed0d58d33 100644 (file)
@@ -676,7 +676,7 @@ st_draw_vbo(GLcontext *ctx,
          for (i = 0; i < nr_prims; i++) {
             prim = translate_prim( ctx, prims[i].mode );
 
-            pipe->draw_range_elements(pipe, indexBuf, indexSize,
+            pipe->draw_range_elements(pipe, indexBuf, indexSize, 0,
                                       min_index, max_index, prim,
                                       prims[i].start + indexOffset, prims[i].count);
          }
@@ -686,12 +686,12 @@ st_draw_vbo(GLcontext *ctx,
             prim = translate_prim( ctx, prims[i].mode );
             
             if (prims[i].num_instances == 1) {
-               pipe->draw_elements(pipe, indexBuf, indexSize, prim,
+               pipe->draw_elements(pipe, indexBuf, indexSize, 0, prim,
                                    prims[i].start + indexOffset,
                                    prims[i].count);
             }
             else {
-               pipe->draw_elements_instanced(pipe, indexBuf, indexSize, prim,
+               pipe->draw_elements_instanced(pipe, indexBuf, indexSize, 0, prim,
                                              prims[i].start + indexOffset,
                                              prims[i].count,
                                              0, prims[i].num_instances);
index 04730464e525b9c92ad99b57d56945e7245dc750..a28ad8eebb60542912324ffb51c4176e98fc1305 100644 (file)
@@ -229,16 +229,16 @@ st_feedback_draw_vbo(GLcontext *ctx,
          map = pipe_buffer_map(pipe, index_buffer_handle,
                                PIPE_TRANSFER_READ, &ib_transfer);
 
-         draw_set_mapped_element_buffer(draw, indexSize, map);
+         draw_set_mapped_element_buffer(draw, indexSize, 0, map);
       }
       else {
-         draw_set_mapped_element_buffer(draw, indexSize, (void *) ib->ptr);
+         draw_set_mapped_element_buffer(draw, indexSize, 0, (void *) ib->ptr);
         ib_transfer = NULL;
       }
    }
    else {
       /* no index/element buffer */
-      draw_set_mapped_element_buffer(draw, 0, NULL);
+      draw_set_mapped_element_buffer(draw, 0, 0, NULL);
    }
 
 
@@ -275,7 +275,7 @@ st_feedback_draw_vbo(GLcontext *ctx,
    }
    if (index_buffer_handle) {
       pipe_buffer_unmap(pipe, index_buffer_handle, ib_transfer);
-      draw_set_mapped_element_buffer(draw, 0, NULL);
+      draw_set_mapped_element_buffer(draw, 0, 0, NULL);
    }
 }