radv: only copy non-NULL shaders when loaded from the cache
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 5 Jan 2023 16:58:45 +0000 (17:58 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 4 Apr 2023 14:47:39 +0000 (14:47 +0000)
commit1239fcab4d3ebbb9f225c17af41a6f6ee6178f01
tree4e8af1d5d50704bdb0d39ec3b9f9b08d901fe717
parent0977925c537fa815b108eb964b08f979f591fdbd
radv: only copy non-NULL shaders when loaded from the cache

With GPL, we don't necessarily load all stages from the same cache
entry and other stages might have been imported from libraries, so
don't overwrite them.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22264>
src/amd/vulkan/radv_pipeline_cache.c