[Mesa-dev] [PATCH] draw/so: respect leading/provoking vertex info

Zack Rusin zackr at vmware.com
Wed Apr 17 15:22:40 PDT 2013


we were ignoring leading/provoking vertex settings which was
breaking decomposition of some strips.

Signed-off-by: Zack Rusin <zackr at vmware.com>
---
 src/gallium/auxiliary/draw/draw_so_emit_tmp.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/draw/draw_so_emit_tmp.h b/src/gallium/auxiliary/draw/draw_so_emit_tmp.h
index 4611cd0..282a52d 100644
--- a/src/gallium/auxiliary/draw/draw_so_emit_tmp.h
+++ b/src/gallium/auxiliary/draw/draw_so_emit_tmp.h
@@ -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:                             \
-- 
1.7.10.4



More information about the mesa-dev mailing list