turnip: Move CP_SET_SUBDRAW_SIZE to vkCmdBindPipeline() time.
authorEmma Anholt <emma@anholt.net>
Wed, 17 Nov 2021 21:26:06 +0000 (13:26 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 1 Dec 2021 16:57:30 +0000 (16:57 +0000)
commitb234c538e8af8e67706a27242981b2d1392c0fe1
treedffb24867b251442b12078ac5a5690eed8ae608e
parentfd11d992546a1e4cd176653ce6c4d6afc2665f9d
turnip: Move CP_SET_SUBDRAW_SIZE to vkCmdBindPipeline() time.

Now that the subdraw size is constant for a pipeline, this lets tess draws
avoid the slow path in vkCmdDraw*().

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