radv: fix enabling adjust_frag_coord_z and apply per-pipeline
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 18 Mar 2022 07:34:26 +0000 (08:34 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 15 Apr 2022 05:49:54 +0000 (05:49 +0000)
commit2591a52560cc26a74e1a937f4e1429a11e54bb66
treec0f2c79516bbbc4f0534f56046f2ca5b5f33dd12
parent9da14a21193425dfb02d620e3da7eed954119b68
radv: fix enabling adjust_frag_coord_z and apply per-pipeline

Fossilize always enables all supported extensions, that means that
adjust_frag_coord_z would always be enabled on RDNA2, even if the
application doesn't enable it. The pipeline key would then be different
and precompilation wouldn't work. Move this per-pipeline since we can
know if VRS will be used.

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/15444>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h
src/amd/vulkan/radv_shader_info.c