nv50: add missing idxbias param to nv50_push_elements_instanced()
authorBrian Paul <brianp@vmware.com>
Tue, 20 Apr 2010 15:43:45 +0000 (09:43 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 20 Apr 2010 15:43:45 +0000 (09:43 -0600)
src/gallium/drivers/nv50/nv50_context.h
src/gallium/drivers/nv50/nv50_vbo.c

index 4875f8330541c471ae7a54db20c73b76086a116d..61807dd999be49a0d04a92115d01f8ed99d79ed1 100644 (file)
@@ -201,7 +201,8 @@ extern struct nouveau_stateobj *nv50_vbo_validate(struct nv50_context *nv50);
 /* nv50_push.c */
 extern void
 nv50_push_elements_instanced(struct pipe_context *, struct pipe_resource *,
-                            unsigned idxsize, unsigned mode, unsigned start,
+                            unsigned idxsize, int idxbias,
+                             unsigned mode, unsigned start,
                             unsigned count, unsigned i_start,
                             unsigned i_count);
 
index 932c1e8992392caef0e1ffd0f0435a737e4fdaeb..911eabca1cf4b6393ff97009674eec342cf68c0f 100644 (file)
@@ -189,7 +189,7 @@ nv50_draw_arrays_instanced(struct pipe_context *pipe,
                return;
 
        if (nv50->vbo_fifo) {
-               nv50_push_elements_instanced(pipe, NULL, 0, mode, start,
+               nv50_push_elements_instanced(pipe, NULL, 0, 0, mode, start,
                                             count, startInstance,
                                             instanceCount);
                return;
@@ -405,8 +405,8 @@ nv50_draw_elements_instanced(struct pipe_context *pipe,
 
        if (nv50->vbo_fifo) {
                nv50_push_elements_instanced(pipe, indexBuffer, indexSize,
-                                            mode, start, count, startInstance,
-                                            instanceCount);
+                                            indexBias, mode, start, count,
+                                            startInstance, instanceCount);
                return;
        } else
        if (!(indexBuffer->bind & PIPE_BIND_INDEX_BUFFER) || indexSize == 1) {