Mesa (master): r600: fix counting error after the last commit

Alex Deucher agd5f at kemper.freedesktop.org
Mon Aug 17 22:17:32 UTC 2009


Module: Mesa
Branch: master
Commit: af1dc225c2af6fd188cee8b0e2447d6b769518b3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=af1dc225c2af6fd188cee8b0e2447d6b769518b3

Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Mon Aug 17 18:16:38 2009 -0400

r600: fix counting error after the last commit

---

 src/mesa/drivers/dri/r600/r700_render.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/r600/r700_render.c b/src/mesa/drivers/dri/r600/r700_render.c
index 9e2971a..6985bd4 100644
--- a/src/mesa/drivers/dri/r600/r700_render.c
+++ b/src/mesa/drivers/dri/r600/r700_render.c
@@ -323,7 +323,7 @@ static void r700RunRenderPrimitive(GLcontext * ctx, int start, int end, int prim
         R600_OUT_BATCH(vgt_num_indices);
         R600_OUT_BATCH(vgt_draw_initiator);
 
-        for (i = start; i < end; i++) {
+        for (i = start; i < (start + num_indices); i++) {
             R600_OUT_BATCH(i);
         }
         END_BATCH();




More information about the mesa-commit mailing list