radv: fix the per-patch data offset when TES isn't linked with TCS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 18 Aug 2023 15:30:04 +0000 (17:30 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 24 Aug 2023 06:03:12 +0000 (06:03 +0000)
commit0004d903d4cc4d05cf9022bec0f863441744be30
treebe2779287de09d49524a8d1d88b38adf2ce97ba7
parentd65fe6eff1fbba390d885c84630a96be37ea76a0
radv: fix the per-patch data offset when TES isn't linked with TCS

When TCS and TES aren't linked together and TCS exports unused outputs,
the per-patch data offset needs to be adjusted. This is similar to the
LS-HS vertex stride when VS and TCS aren't linked together.

This fixes a bunch of failures by forcing the driver to use TCS epilogs.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24776>
src/amd/vulkan/nir/radv_nir_lower_abi.c
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_shader.h
src/amd/vulkan/radv_shader_args.c