Mesa (master): radv: replace discard with demote for Quantic Dream games
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 21 11:53:45 UTC 2020
Module: Mesa
Branch: master
Commit: d9072a113b2041cebfa10e6e27b5ce2687a02126
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9072a113b2041cebfa10e6e27b5ce2687a02126
Author: Rhys Perry <pendingchaos02 at gmail.com>
Date: Mon Jul 20 16:54:22 2020 +0100
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 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Cc: <mesa-stable at 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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 53a6a3d4309..b9969e4e5eb 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -571,7 +571,8 @@ radv_handle_per_app_options(struct radv_instance *instance,
instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
} else if (!strcmp(engine_name, "Quantic Dream Engine")) {
/* Fix various artifacts in Detroit: Become Human */
- instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
+ instance->debug_flags |= RADV_DEBUG_ZERO_VRAM |
+ RADV_DEBUG_DISCARD_TO_DEMOTE;
}
}
More information about the mesa-commit
mailing list