radv: enable shaders cache for libraries with GPL
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 6 Jan 2023 08:01:12 +0000 (09:01 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 4 Apr 2023 14:47:39 +0000 (14:47 +0000)
commitc5b7efa2938b2d3b9ed787d3d1d090ecad27c0d2
tree3a7b586480e7af7e9113ef298c59e0fafe17e4fb
parent03d2bd6042d2d93caaab70892e35ffffa16b4bb7
radv: enable shaders cache for libraries with GPL

This was the last missing feature for GPL. The main problem is that
the on-disk shaders cache size will increase a lot because we don't
deduplicate shaders but there is on-going work to improve that.

We also can't use the shaders cache for libraries created with the
RETAIN_LINK_TIME_OPTIMIZATION flag and module identifiers because we
don't know the SPIR-V and thus can't retain NIR shaders for linking.

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.c