From: Brian Paul Date: Wed, 10 Jun 2009 03:51:29 +0000 (-0600) Subject: softpipe: implement flatshade_first for line setup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f26f8c750d087211e266e9a228d4c4db473c31f;p=mesa.git softpipe: implement flatshade_first for line setup --- diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c index c6844a26498..7d248186fde 100644 --- a/src/gallium/drivers/softpipe/sp_setup.c +++ b/src/gallium/drivers/softpipe/sp_setup.c @@ -1051,7 +1051,10 @@ setup_line_coefficients(struct setup_context *setup, float area; /* use setup->vmin, vmax to point to vertices */ - setup->vprovoke = v1; + if (softpipe->rasterizer->flatshade_first) + setup->vprovoke = v0; + else + setup->vprovoke = v1; setup->vmin = v0; setup->vmax = v1;