radv: upload shader binaries after they are all compiled
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 Nov 2021 12:30:28 +0000 (13:30 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Dec 2021 07:17:04 +0000 (07:17 +0000)
commit13143b3c1149ce6857c0357bb6b467b6cd6d5dc9
tree9311330fd20162d9c8574b6aa2a5286bcb980eb1
parentff61b36ba2b03107a98fb708926d607760f29301
radv: upload shader binaries after they are all compiled

Instead of mixing compilation and upload. This will allow us to
upload all shader binaries contiguously in memory and also for future
pipeline libraries work.

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/13690>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_pipeline_cache.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h