Mesa (staging/19.1): radv: Add workaround for hang in The Surge 2.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Sep 25 11:48:00 UTC 2019


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

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Tue Sep 24 02:53:21 2019 +0200

radv: Add workaround for hang in The Surge 2.

Released today and hangs on RADV. We don't have the root cause yet,
but this should unblock people playing the game.

No drirc because the radv debugflags are not usable from drirc and
I want this backported.

CC: <mesa-stable at lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied at redhat.com>
(cherry picked from commit 780182f0a0caa9b6f48f87b1930b3bcba1ac9319)

---

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

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index d2a088bb100..aec3c9ffc91 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -518,6 +518,14 @@ radv_handle_per_app_options(struct radv_instance *instance,
 		 */
 		if (HAVE_LLVM < 0x900)
 			instance->debug_flags |= RADV_DEBUG_NO_LOAD_STORE_OPT;
+	} else if (!strcmp(name, "Fledge")) {
+		/*
+		 * Zero VRAM for "The Surge 2"
+		 *
+		 * This avoid a hang when when rendering any level. Likely
+		 * uninitialized data in an indirect draw.
+		 */
+		instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
 	}
 }
 




More information about the mesa-commit mailing list