OSDN Git Service

i915: Fix t_vb_rendertmp.h's provoking vertex handywork
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 28 Jun 2014 18:58:47 +0000 (21:58 +0300)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 16 Jul 2015 13:48:41 +0000 (21:48 +0800)
commitad2cc85f555d29ced8383446d6a72aeffea6b7e7
tree3d26b45ed0d4e2588bb82dbd99c296c2e218d954
parent9050e2352c344bdfe03f04dddf13aac01fa8eb06
i915: Fix t_vb_rendertmp.h's provoking vertex handywork

t_vb_rendertmp.h reorder the vertices passed to the driver based on
the provoking vertex convention. The last vertex passed is always the
provoking vertex. For us however that's a bit bad since the hardware
itself handles the provoking vertex. Reorder the vertices back to the
original order in the driver to make sure the correct provoking vertex
is used.

This seemed easier than trying to adjust t_vd_rendertmp.h to not
reorder (mainly because swrast would still need the reordering),
or having to mess about with the hardware state depending on the
path we take to render the primitives.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
src/mesa/drivers/dri/i915/intel_tris.c