summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2019-09-24 02:53:21 +0200
committerJuan A. Suarez Romero <jasuarez@igalia.com>2019-10-02 09:41:27 -0400
commit9ee9251ef89356f8704c6eb1580aa522b9ac4d64 (patch)
tree22922abd3cf9e931fda43a5024488656bbe53bf6
parentb977c7444c77f70863d7f35f064f6b5789152347 (diff)
downloadmesa-9ee9251ef89356f8704c6eb1580aa522b9ac4d64.tar.gz
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@lists.freedesktop.org> Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit 780182f0a0caa9b6f48f87b1930b3bcba1ac9319)
-rw-r--r--src/amd/vulkan/radv_device.c8
1 files changed, 8 insertions, 0 deletions
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;
}
}