Mesa (master): draw: Fix vsplit regression when the ib can be used directly .

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed May 15 15:59:42 UTC 2013


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed May 15 16:57:11 2013 +0100

draw: Fix vsplit regression when the ib can be used directly.

`ib` no longer is offseted by `istart`.

Trivial.

---

 src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h b/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h
index 2d8957e..7f4527a 100644
--- a/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h
+++ b/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h
@@ -59,7 +59,7 @@ CONCAT(vsplit_primitive_, ELT_TYPE)(struct vsplit_frontend *vsplit,
             debug_printf("warning: index out of range\n");
          }
       }
-      draw_elts = (const ushort *) ib;
+      draw_elts = (const ushort *) (ib + istart);
    }
    else {
       /* have to go through vsplit->draw_elts */




More information about the mesa-commit mailing list