swr: [rasterizer core] TemplateArgUnroller
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 5 Apr 2016 02:00:13 +0000 (20:00 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 22 Apr 2016 23:48:29 +0000 (18:48 -0500)
commit27cc5924ea95d5a00ddb9d5c6ffb8853c92b1f4e
tree065f54c7cc799dd2c8c6fb7f1dcecf05939937f5
parent46a448d161b1243c068946d5f6170ae739732274
swr: [rasterizer core] TemplateArgUnroller

Switch boolean template arguments to typename template arguments of type
std::integral_constant<bool, VALUE>.

This allows the template argument unroller to easily be extended to enums.

Reviewed-by: Bruce Cherniak <bruce.cherniak@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/utils.h