radv: copy the user SGPRs locations outside of radv_declare_shader_args()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 29 Nov 2021 08:29:22 +0000 (09:29 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 29 Nov 2021 10:10:06 +0000 (10:10 +0000)
commit096c02bcf52bde734cbe14ea0195f9607d06fb53
tree00ac5260aad5d03c69ca757535962d3711f96f63
parent3bbc226d7aba105fa53bde3fd972fc1ea0196ec7
radv: copy the user SGPRs locations outside of radv_declare_shader_args()

The shader locations are now directly stored in radv_shader_args which
makes sense because they are tied to the arguments. The locations are
then copied to radv_shader_info but they will be moved into a new
radv_shader_binary_info with upcoming changes.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13542>
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader_args.c
src/amd/vulkan/radv_shader_args.h