From: Zack Rusin Date: Wed, 17 Apr 2013 22:21:35 +0000 (-0700) Subject: draw/so: respect leading/provoking vertex info X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e7f7e9693814dec8196953786f4ae2e738453e2;p=mesa.git draw/so: respect leading/provoking vertex info we were ignoring leading/provoking vertex settings which was breaking decomposition of some strips. Signed-off-by: Zack Rusin Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/auxiliary/draw/draw_so_emit_tmp.h b/src/gallium/auxiliary/draw/draw_so_emit_tmp.h index 4611cd00426..282a52d1c01 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: \