Mesa (master): nv50: fix draw_elements_inline_u08/16
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Thu Sep 3 10:58:46 UTC 2009
Module: Mesa
Branch: master
Commit: c8258b95d63dd002d532309abdc95b51c57e6b45
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8258b95d63dd002d532309abdc95b51c57e6b45
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Thu Sep 3 12:37:05 2009 +0200
nv50: fix draw_elements_inline_u08/16
We've been emitting the same two indices over and over
without incrementing map.
---
src/gallium/drivers/nv50/nv50_vbo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c
index 36f1b24..daa49cf 100644
--- a/src/gallium/drivers/nv50/nv50_vbo.c
+++ b/src/gallium/drivers/nv50/nv50_vbo.c
@@ -178,7 +178,7 @@ nv50_draw_elements_inline_u08(struct nv50_context *nv50, uint8_t *map,
BEGIN_RING(chan, tesla, 0x400015f0, nr >> 1);
for (i = 0; i < nr; i += 2)
- OUT_RING (chan, (map[1] << 16) | map[0]);
+ OUT_RING (chan, (map[i + 1] << 16) | map[i]);
count -= nr;
map += nr;
@@ -207,7 +207,7 @@ nv50_draw_elements_inline_u16(struct nv50_context *nv50, uint16_t *map,
BEGIN_RING(chan, tesla, 0x400015f0, nr >> 1);
for (i = 0; i < nr; i += 2)
- OUT_RING (chan, (map[1] << 16) | map[0]);
+ OUT_RING (chan, (map[i + 1] << 16) | map[i]);
count -= nr;
map += nr;
More information about the mesa-commit
mailing list