draw: Remove reduced_prim
authorJakob Bornecrantz <wallbraker@gmail.com>
Sun, 5 Dec 2010 20:19:12 +0000 (21:19 +0100)
committerStéphane Marchesin <marcheu@chromium.org>
Thu, 26 Jan 2012 09:38:36 +0000 (01:38 -0800)
Conflicts:

src/gallium/auxiliary/draw/draw_context.c

Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt.c

index 7e554dcbb00380ff03afb2c92fd7afcebd7231dc..4ce444550849a4bd3b99a5e9e446eafda4f13726 100644 (file)
@@ -155,8 +155,6 @@ boolean draw_init(struct draw_context *draw)
    draw->clip_z = TRUE;
 
    draw->pt.user.planes = (float (*) [DRAW_TOTAL_CLIP_PLANES][4]) &(draw->plane[0]);
-   draw->reduced_prim = ~0; /* != any of PIPE_PRIM_x */
-
 
    if (!draw_pipeline_init( draw ))
       return FALSE;
@@ -656,8 +654,6 @@ void draw_do_flush( struct draw_context *draw, unsigned flags )
 
       draw_pipeline_flush( draw, flags );
 
-      draw->reduced_prim = ~0; /* is reduced_prim needed any more? */
-      
       draw->flushing = FALSE;
    }
 }
index 31beb4b98e3a5b6e3d8a53299c1a00c4e4afff50..1a0286de891015e66d1d5afcd18db58400a2740a 100644 (file)
@@ -290,8 +290,6 @@ struct draw_context
       uint slot[10];
    } extra_shader_outputs;
 
-   unsigned reduced_prim;
-
    unsigned instance_id;
 
 #ifdef HAVE_LLVM
index 080e03dd46fd31a9b87ee655e547c7cf24cb5131..9a017fd0567954fb6992c36f0a19a3712e591330 100644 (file)
@@ -420,7 +420,6 @@ void
 draw_vbo(struct draw_context *draw,
          const struct pipe_draw_info *info)
 {
-   unsigned reduced_prim = u_reduced_prim(info->mode);
    unsigned instance;
    unsigned index_limit;
 
@@ -435,11 +434,6 @@ draw_vbo(struct draw_context *draw,
    draw->pt.user.min_index = info->min_index;
    draw->pt.user.max_index = info->max_index;
 
-   if (reduced_prim != draw->reduced_prim) {
-      draw_do_flush(draw, DRAW_FLUSH_STATE_CHANGE);
-      draw->reduced_prim = reduced_prim;
-   }
-
    if (0)
       debug_printf("draw_vbo(mode=%u start=%u count=%u):\n",
                    info->mode, info->start, info->count);