draw/so: respect leading/provoking vertex info
authorZack Rusin <zackr@vmware.com>
Wed, 17 Apr 2013 22:21:35 +0000 (15:21 -0700)
committerZack Rusin <zackr@vmware.com>
Wed, 17 Apr 2013 22:43:50 +0000 (15:43 -0700)
we were ignoring leading/provoking vertex settings which was
breaking decomposition of some strips.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_so_emit_tmp.h

index 4611cd004265470ccb88367a86bced0f971da5e7..282a52d1c018ab8c5d7d2d069f2f2a5ae9a8ba77 100644 (file)
@@ -10,7 +10,7 @@
    const unsigned prim = input_prims->prim;                       \
    const unsigned prim_flags = input_prims->flags;                \
    const boolean quads_flatshade_last = FALSE;                    \
-   const boolean last_vertex_last = TRUE;                         \
+   const boolean last_vertex_last = !so->draw->rasterizer->flatshade_first;  \
    do {                                                           \
       switch (prim) {                                             \
       case PIPE_PRIM_LINES_ADJACENCY:                             \