tu: Split out primtype calculation for tess
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 18 Aug 2022 10:31:34 +0000 (12:31 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 21 Sep 2022 11:20:15 +0000 (11:20 +0000)
commitc90c77924a1bf307ea81394bc36441ab95e748b8
tree81a00dc004b1711ebdcc5ef7a33f52fc7597ae9d
parent1c6c8ce54b4a17c7462fa9030bcba91a6b2a7fc3
tu: Split out primtype calculation for tess

With pipeline libraries, we may not know the HW primtype if the user
passes a primtype of PATCHES because the tess shaders and input assembly
state may be in different pipelines. We need to split out the patch
control points and only determine the final primtype once everything has
been merged. In preparation for this, and for dynamic patch control
points, calculate the final primtype dynamically. We already had a
draw-time workaround for dynamic primtype we can now remove, so this
actually reduces the amount of draw-time work we have to do anyway.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18554>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_pipeline.h