turnip: use SUBDRAW_SIZE and constant sized tess bos
authorJonathan Marek <jonathan@marek.ca>
Mon, 27 Jul 2020 14:06:46 +0000 (10:06 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 1 Dec 2021 16:57:30 +0000 (16:57 +0000)
commitfd11d992546a1e4cd176653ce6c4d6afc2665f9d
treee319cf44bbc99fea2aea1292f3fb1789f4ce343e
parent3748b8afce91beeaabb71e3f9723bc57b4abf54f
turnip: use SUBDRAW_SIZE and constant sized tess bos

This fixes the problem of large indirect draws, and at the same time avoids
allocating too large buffers for tessellation.

Reworked by @anholt to use a separate tess factor BO so we can skip the
WFIs to set the TESSFACTOR_ADDR.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6089>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_private.h