radv: replace discard with demote for Quantic Dream games
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 20 Jul 2020 15:54:22 +0000 (16:54 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Jul 2020 11:34:23 +0000 (11:34 +0000)
commitd9072a113b2041cebfa10e6e27b5ce2687a02126
treebd7dde5428c73832b24d7756f3e97b2f473991f5
parent51bc11abc206ae5ea0946f5a79c68527701c24e0
radv: replace discard with demote for Quantic Dream games

Detroit: Become Human uses dFdx/dFdy immediately after a quad-divergent
discard, which can cause the image to become white.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: <mesa-stable@lists.freedesktop.org>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3212
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5991>
src/amd/vulkan/radv_device.c