swr: fix polygonmode for front==back
authorGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 19 Apr 2017 18:55:26 +0000 (13:55 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Tue, 9 May 2017 02:28:53 +0000 (21:28 -0500)
commit909f72e0a2178ede4497c352933c608e6e8dab00
treee3e1d9c3ff16d1338a861e890d82df45523e61c7
parent26a9ed6f0fee1ea0a01e99f42e0f9101d3c53ef0
swr: fix polygonmode for front==back

Rasterizer core only supports polygonmode front==back.  Add logic for
populating fillMode for the rasterizer only for that case correctly.
Provide enum conversion between mesa enums and core enums.

The core renders lines/points as tris. Previously, code would enable
stipple for polygonmode != FILL.  Modify stipple enable logic so that
this works correctly.

No regressions in vtk tests.
Fixes the following piglit tests:
pointsprite
gl-1.0-edgeflag-const

v2: remove cc stable, and remove "not implemented" assert
v3: modified commit message

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_state.cpp
src/gallium/drivers/swr/swr_state.h