draw: last_vertex_last is always true for GS and SO.
authorChia-I Wu <olv@lunarg.com>
Mon, 9 Aug 2010 16:39:23 +0000 (00:39 +0800)
committerChia-I Wu <olv@lunarg.com>
Mon, 16 Aug 2010 12:46:29 +0000 (20:46 +0800)
That is, OpenGL decomposition rule is assumed.  There should be a
pipe_context state to specify the rules.

src/gallium/auxiliary/draw/draw_gs_tmp.h
src/gallium/auxiliary/draw/draw_so_emit_tmp.h

index 7c8a9f9cfcc7aa0c753e57404e90f84bb5e63964..de7b02655a5101c26bddaea4ed880623f9559538 100644 (file)
@@ -6,13 +6,10 @@
 
 #define FUNC_ENTER                                                \
    /* declare more local vars */                                  \
-   struct draw_context *draw = gs->draw;                          \
    const unsigned prim = input_prims->prim;                       \
-   const unsigned count = input_prims->count;                     \
-   const boolean last_vertex_last =                               \
-      !(draw->rasterizer->flatshade &&                            \
-        draw->rasterizer->flatshade_first);                       \
    const unsigned prim_flags = input_prims->flags;                \
+   const unsigned count = input_prims->count;                     \
+   const boolean last_vertex_last = TRUE;                         \
    do {                                                           \
       debug_assert(input_prims->primitive_count == 1);            \
       switch (prim) {                                             \
index 1446e81bba7848dd01d80dedb49f9c90004eaa09..7fafde9d5e6605d5a2c5c78e2c11ec61a3325671 100644 (file)
@@ -7,12 +7,9 @@
 
 #define FUNC_ENTER                                                \
    /* declare more local vars */                                  \
-   struct draw_context *draw = so->draw;                          \
    const unsigned prim = input_prims->prim;                       \
-   const boolean last_vertex_last =                               \
-      !(draw->rasterizer->flatshade &&                            \
-        draw->rasterizer->flatshade_first);                       \
    const unsigned prim_flags = input_prims->flags;                \
+   const boolean last_vertex_last = TRUE;                         \
    do {                                                           \
       debug_assert(input_prims->primitive_count == 1);            \
       switch (prim) {                                             \