radv: move radv_declare_shader_args() out of shader_variant_compile()
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 24 Sep 2020 13:50:54 +0000 (14:50 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 22 Mar 2022 16:33:27 +0000 (16:33 +0000)
commite6672f6fd190a7d65de35276da5e814907afb8a1
treee6866610fcb23f70d2aa4088d0469fd5672c4df1
parenta56bb2d54507ffce24fc2c5257560d74c1db153b
radv: move radv_declare_shader_args() out of shader_variant_compile()

Declaring them earlier will allow us to access them in NIR.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-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/12773>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/vulkan/radv_nir_to_llvm.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h
src/amd/vulkan/radv_shader_args.c
src/amd/vulkan/radv_shader_args.h