radv: do not enable VRS flat shading if the VRS builtin is read
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 23 May 2023 16:50:52 +0000 (18:50 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 24 May 2023 09:02:31 +0000 (09:02 +0000)
commitb439bd5a5844e3df812f1f0362fd1a715058fb3a
tree83e0b770e044f7b21bef976a5bbcfb9dc3c9b9c1
parent1a8dd84ec613f6e89ef5f180d79cddde0cd93d52
radv: do not enable VRS flat shading if the VRS builtin is read

When the fragment shader reads the VRS builtin, VRS flat shading
shouldn't be enabled, otherwise the value might not be what the FS
expects.

Fixes dEQP-VK.fragment_shading_rate.renderpass2.monolithic.multipass.*
on RDNA2 (VRS flat shading isn't yet enabled on RDNA3).

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