OSDN Git Service

i915: Handle provoking vertex in intelFastRenderClippedPoly()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Jun 2014 15:45:40 +0000 (18:45 +0300)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 16 Jul 2015 13:48:41 +0000 (21:48 +0800)
commit9050e2352c344bdfe03f04dddf13aac01fa8eb06
tree1182a1cc220516872e8b368ceb646eb4d9e7896b
parent056cbfc7fac084d73f6a6cb7f43b1e0c1316febe
i915: Handle provoking vertex in intelFastRenderClippedPoly()

intelFastRenderClippedPoly() renders the polygon using triangles. For
polygons the provoking vertex is always the first one, and currently
this function assumes that the provoking vertex for triangles is the
last one. In case the user changed the provoking vertex convention,
the hardware may be configured to treat the first vertex of triangles
as the provoking vertex. So check the convention and emit the triangles
in the appropriate order to avoid having to change the hardware
provoking vertex convention for rendering polygons.

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