turnip: Support tess for draws
authorBrian Ho <brian@brkho.com>
Fri, 24 Apr 2020 19:52:05 +0000 (12:52 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 14:35:46 +0000 (14:35 +0000)
commit2718353b381790be3dca8a385d23034ea96f8565
tree8932d7da7e095aba0d9a9e51ec9060542d4fb3d5
parent08aaa3d4c46984f49fa0a9971224fabbd5a31408
turnip: Support tess for draws

This commit adds tessellation support for draws. We store the IR3
patch type in tu_pipeline so we can use it in tu_emit_draw_*. We then
convert the IR3 patch type to the native adreno patch type and set
the appropriate reg values.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5059>
src/freedreno/registers/a6xx.xml
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_private.h