Mesa (master): gallium/draw: forgot about PIPE_PRIM_LINE_STRIP_ADJACENCY

Zack Rusin zack at kemper.freedesktop.org
Tue Aug 3 12:58:02 PDT 2010


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

Author: Zack Rusin <zackr at vmware.com>
Date:   Tue Aug  3 16:02:09 2010 -0400

gallium/draw: forgot about PIPE_PRIM_LINE_STRIP_ADJACENCY

---

 src/gallium/auxiliary/util/u_prim.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_prim.h b/src/gallium/auxiliary/util/u_prim.h
index 63ddc86..3c851f7 100644
--- a/src/gallium/auxiliary/util/u_prim.h
+++ b/src/gallium/auxiliary/util/u_prim.h
@@ -113,6 +113,7 @@ static INLINE boolean u_trim_pipe_prim( unsigned pipe_prim, unsigned *nr )
       *nr -= (*nr % 4);
       break;
    case PIPE_PRIM_LINE_STRIP_ADJACENCY:
+      ok = (*nr >= 4);
       break;
    case PIPE_PRIM_TRIANGLES_ADJACENCY:
       ok = (*nr >= 6);



More information about the mesa-commit mailing list