summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-20 09:43:45 -0600
committerBrian Paul <brianp@vmware.com>2010-04-20 09:43:45 -0600
commit36c9557cae78814b320768697eaccf3cf0e0ebae (patch)
tree156dfae890b2626e509bb445353aa8952ff8315e /src/gallium/drivers/nv50
parenta00f4e864cbd98cc6419a71ab22cb3c7d027f0e9 (diff)
nv50: add missing idxbias param to nv50_push_elements_instanced()
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/nv50_context.h3
-rw-r--r--src/gallium/drivers/nv50/nv50_vbo.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.h b/src/gallium/drivers/nv50/nv50_context.h
index 4875f83305..61807dd999 100644
--- a/src/gallium/drivers/nv50/nv50_context.h
+++ b/src/gallium/drivers/nv50/nv50_context.h
@@ -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);
diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c
index 932c1e8992..911eabca1c 100644
--- a/src/gallium/drivers/nv50/nv50_vbo.c
+++ b/src/gallium/drivers/nv50/nv50_vbo.c
@@ -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) {