radv: rework linking shaders in NIR
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 19 Aug 2022 08:36:18 +0000 (10:36 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 22 Aug 2022 13:45:28 +0000 (13:45 +0000)
commitcac4ad2115acdccf7cdcde19735575fe7a9ad57d
tree1dcc7b073817a2f446de732ad9702c941dc4d4d4
parentf9e3339e39c9d9c08d705a1fc359014c4ba6b780
radv: rework linking shaders in NIR

Replace these ugly loops with something much cleaner and easier to
maintain.

There shouldn't be any functional changes.

No fossils-db changes (tested on NAVI21, VEGA10 and POLARIS10).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18138>
src/amd/vulkan/radv_pipeline.c