summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Bornecrantz <wallbraker@gmail.com>2010-12-05 21:19:12 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-02-26 14:58:38 +0100
commit056fc06d0f099890092f90d2fcccf57bf482e1d3 (patch)
treecfcbd6984499b627e0cac17df68b60e2ba8c2c78
parenta34218a36b981fe6fbafd89e17626d48731ddc9a (diff)
draw: Remove reduced_prim
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c6
-rw-r--r--src/gallium/auxiliary/draw/draw_private.h2
-rw-r--r--src/gallium/auxiliary/draw/draw_pt.c6
3 files changed, 0 insertions, 14 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index 95d9671987..829b177e91 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -131,10 +131,6 @@ boolean draw_init(struct draw_context *draw)
draw->clip_xy = 1;
draw->clip_z = 1;
-
- draw->reduced_prim = ~0; /* != any of PIPE_PRIM_x */
-
-
if (!draw_pipeline_init( draw ))
return FALSE;
@@ -618,8 +614,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;
}
}
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h
index db2e3c5410..d4a8151d29 100644
--- a/src/gallium/auxiliary/draw/draw_private.h
+++ b/src/gallium/auxiliary/draw/draw_private.h
@@ -280,8 +280,6 @@ struct draw_context
uint slot[10];
} extra_shader_outputs;
- unsigned reduced_prim;
-
unsigned instance_id;
#ifdef HAVE_LLVM
diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c
index c3d7e871f7..0e9ad668ca 100644
--- a/src/gallium/auxiliary/draw/draw_pt.c
+++ b/src/gallium/auxiliary/draw/draw_pt.c
@@ -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;
assert(info->instance_count > 0);
@@ -434,11 +433,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);