summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_push.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2010-12-19 21:33:37 +0100
committerChristoph Bumiller <[email protected]>2010-12-19 21:33:37 +0100
commit99f9a9727ca315e4ee4371fc05be4798ffb46214 (patch)
treeed93bd3e04c7d87096852da7322773886e16005e /src/gallium/drivers/nvc0/nvc0_push.c
parent5138ac033ad3708e2b82f2beebc887f65a77309e (diff)
nvc0: add the index buffer offset where missing
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_push.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_push.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_push.c b/src/gallium/drivers/nvc0/nvc0_push.c
index 1bdc8e88a72..8cb05cdd09e 100644
--- a/src/gallium/drivers/nvc0/nvc0_push.c
+++ b/src/gallium/drivers/nvc0/nvc0_push.c
@@ -227,6 +227,8 @@ nvc0_push_vbo(struct nvc0_context *nvc0, const struct pipe_draw_info *info)
PIPE_TRANSFER_READ, &transfer);
if (!ctx.idxbuf)
return;
+ ctx.idxbuf = (uint8_t *)ctx.idxbuf + nvc0->idxbuf.offset;
+
index_size = nvc0->idxbuf.index_size;
ctx.primitive_restart = info->primitive_restart;
ctx.restart_index = info->restart_index;