swr: [rasterizer] Correctly select optimized primitive assembly.
authorBruce Cherniak <bruce.cherniak@intel.com>
Tue, 24 May 2016 20:00:17 +0000 (15:00 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 25 May 2016 23:47:16 +0000 (18:47 -0500)
commitc8835a592471a0238e296f6529b5dadb431cc622
tree2e75f1fcde19886777c15f4a6ca471cdc0dc3604
parent978ab88858170b219cf6b66eaac11e89ae2f0ce9
swr: [rasterizer] Correctly select optimized primitive assembly.

Indexed primitives were always using cut-aware primitive assembly,
whether primitive_restart was enabled or not.  Correctly pass down
primitive_restart and select optimized PA when possible.

Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp
src/gallium/drivers/swr/rasterizer/core/frontend.cpp
src/gallium/drivers/swr/rasterizer/core/frontend.h
src/gallium/drivers/swr/rasterizer/core/pa.h
src/gallium/drivers/swr/rasterizer/core/state.h
src/gallium/drivers/swr/swr_draw.cpp
src/gallium/drivers/swr/swr_state.cpp