Revert "softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON"

This reverts commit 5d75124db4.

This fixed unclipped polygons, but broke clipped polygons.
A better fix from the mesa 7.5 branch will be merged next...
This commit is contained in:
Brian Paul 2009-05-30 20:09:19 -06:00
parent fa0ca31586
commit 6c3cefdda6
3 changed files with 1 additions and 6 deletions

View file

@ -107,7 +107,6 @@ struct softpipe_context {
/** Which vertex shader output slot contains point size */
int psize_slot;
unsigned api_prim; /**< current prim type being drawn: PIPE_PRIM_x */
unsigned reduced_api_prim; /**< PIPE_PRIM_POINTS, _LINES or _TRIANGLES */
/** Derived from scissor and surface bounds: */

View file

@ -129,7 +129,6 @@ softpipe_draw_range_elements(struct pipe_context *pipe,
struct draw_context *draw = sp->draw;
unsigned i;
sp->api_prim = mode;
sp->reduced_api_prim = reduced_prim[mode];
if (sp->dirty)

View file

@ -514,10 +514,7 @@ static boolean setup_sort_vertices( struct setup_context *setup,
const float (*v1)[4],
const float (*v2)[4] )
{
if (setup->softpipe->api_prim == PIPE_PRIM_POLYGON)
setup->vprovoke = v0;
else
setup->vprovoke = v2;
setup->vprovoke = v2;
/* determine bottom to top order of vertices */
{