Mesa (staging/20.1): radv: lower discards to demote to workaround a RDR2 game bug

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 19 20:07:10 UTC 2020


Module: Mesa
Branch: staging/20.1
Commit: f91958b518067e31951498771c20247ace1782fc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f91958b518067e31951498771c20247ace1782fc

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>
(cherry picked from commit c4aa64b4c346c06af36c223f00a09a43434c1746)

---

 .pick_status.json            | 2 +-
 src/amd/vulkan/radv_device.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.pick_status.json b/.pick_status.json
index 8cf6ee12625..791ee589e62 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -688,7 +688,7 @@
         "description": "radv: lower discards to demote to workaround a RDR2 game bug",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "master_sha": null,
         "because_sha": null
     },
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 522c2cc927e..a60a2c0590d 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -542,6 +542,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