From 1a87473998b4af2dbe37aa3ce0c004e62d3fe2c0 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Mon, 22 Apr 2013 20:44:21 -0400 Subject: [PATCH] draw/gs: preserve leading vertex info for gs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We need to handle the leading vertex information when assembling primitives for the geometry shader otherwise the resulting triangles will have vertices at incorrect input locations. Signed-off-by: Zack Rusin Reviewed-by: José Fonseca --- src/gallium/auxiliary/draw/draw_gs_tmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/draw/draw_gs_tmp.h b/src/gallium/auxiliary/draw/draw_gs_tmp.h index 92b6fb75ea1..b10bbc413d9 100644 --- a/src/gallium/auxiliary/draw/draw_gs_tmp.h +++ b/src/gallium/auxiliary/draw/draw_gs_tmp.h @@ -10,7 +10,7 @@ const unsigned prim_flags = input_prims->flags; \ const unsigned count = input_prims->count; \ const boolean quads_flatshade_last = FALSE; \ - const boolean last_vertex_last = TRUE; \ + const boolean last_vertex_last = !gs->draw->rasterizer->flatshade_first; \ do { \ debug_assert(input_prims->primitive_count == 1); \ switch (prim) { \ -- 2.30.2