radv: do not lower loading TESS/ESGS rings using the ABI for LLVM
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 16 May 2022 14:42:22 +0000 (16:42 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 May 2022 16:45:02 +0000 (16:45 +0000)
commit07eba9a15a06ceda3469892822e8b539effc6788
treedb8d014b89d95f6d5c61c21a0c0353c89e785245
parent6b1e73c700f3ecb8115cbf8da7ebf9770772d1dc
radv: do not lower loading TESS/ESGS rings using the ABI for LLVM

LLVM uses an implicit argument for the ring offsets and this lowering
was just broken.

This fixes tessellation and geometry on all generations with LLVM.

Fixes: 896a55f47d9 ("radv: Lower ABI in NIR for tess/ESGS/NGG shader arguments.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16530>
src/amd/llvm/ac_nir_to_llvm.c
src/amd/vulkan/radv_nir_lower_abi.c
src/amd/vulkan/radv_nir_to_llvm.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.h