freedreno/ir3: Passthrough TCS support
authorRob Clark <robdclark@chromium.org>
Sat, 22 Oct 2022 18:39:21 +0000 (11:39 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Oct 2022 21:39:38 +0000 (21:39 +0000)
commit38c747ce3d307457511fb6e8c3bfec8eb1d4ddd8
treeafe8496a7405e028dfcd017120e668f2a5f4037c
parenta7290370de226cb5e59bd8e0c88c2e7cf02a24ee
freedreno/ir3: Passthrough TCS support

Wire up support for the two intrisics to get default tess levels (which
adds new HS driver params) and add a helper to generate a passthrough
TCS for a given VS.  The passthrough TCS is cached in the VS, indexed by
patch_vertices, as the generated TCS is a function of the VS outputs and
the patch_vertices count.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19259>
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_nir.c
src/freedreno/ir3/ir3_shader.c
src/freedreno/ir3/ir3_shader.h