Mesa (master): radv: lower discards to demote to workaround a RDR2 game bug

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 18 07:02:13 UTC 2020


Module: Mesa
Branch: master
Commit: c4aa64b4c346c06af36c223f00a09a43434c1746
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4aa64b4c346c06af36c223f00a09a43434c1746

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Jun 17 16:35:05 2020 +0200

radv: lower discards to demote to workaround a RDR2 game bug

This fixes some sort of LOD issue.

Cc: 20.1 <mesa-stable at lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5525>

---

 src/amd/vulkan/radv_device.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 2a51c607259..f9afd722dd6 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -579,6 +579,9 @@ radv_handle_per_app_options(struct radv_instance *instance,
 		} else if (!strcmp(name, "DOOMEternal")) {
 			/* Zero VRAM for Doom Eternal to fix rendering issues. */
 			instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
+		} else if (!strcmp(name, "Red Dead Redemption 2")) {
+			/* Work around a RDR2 game bug */
+			instance->debug_flags |= RADV_DEBUG_DISCARD_TO_DEMOTE;
 		}
 	}
 



More information about the mesa-commit mailing list