swr/rasterizer: Add tessellator implementation to the rasterizer
authorJan Zielinski <jan.zielinski@intel.com>
Wed, 4 Dec 2019 12:10:18 +0000 (13:10 +0100)
committerJan Zielinski <jan.zielinski@intel.com>
Wed, 11 Dec 2019 16:54:37 +0000 (16:54 +0000)
commitab5570820071d97c4adfe8cd8a90083f3784fa5e
tree73a6de5b1b59f7a93a5ac164ef963a8b4e850c8d
parentff2e11b21057a621d08c9da102b7c2e832ada39b
swr/rasterizer: Add tessellator implementation to the rasterizer

This is initial commit on the way to implement ARB_tessellation_shader
extension in OpenSWR. It introduces tessellator implementation
taken from Microsoft GitHub (published under MIT license):

https://github.com/microsoft/DirectX-Specs/blob/master/d3d/archive/images/d3d11/tessellator.cpp
https://github.com/microsoft/DirectX-Specs/blob/master/d3d/archive/images/d3d11/tessellator.hpp

It also adds some glue code that connects the tessellator
to the internals of SWR rasterizer.

Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Bruce Cherniak <bruce.cherniak@intel.com>
Reviwed-by: Alok Hota <alok.hota@intel.com>
src/gallium/drivers/swr/Makefile.sources
src/gallium/drivers/swr/meson.build
src/gallium/drivers/swr/rasterizer/core/tessellator.cpp [new file with mode: 0644]
src/gallium/drivers/swr/rasterizer/core/tessellator.h
src/gallium/drivers/swr/rasterizer/core/tessellator.hpp [new file with mode: 0644]