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;
draw_pipeline_flush( draw, flags );
- draw->reduced_prim = ~0; /* is reduced_prim needed any more? */
-
draw->flushing = FALSE;
}
}
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;
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);