diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-09-24 02:53:21 +0200 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-09-24 08:24:22 -0700 |
commit | 5037ffb646d4be7c6f22dc5f2b9fee948561a546 (patch) | |
tree | 471c20c08978faa778706058ff4c55fc5b22c350 | |
parent | c90dc1232dddcc41dcfca8316165015832f551c0 (diff) |
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: <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
(cherry picked from commit 780182f0a0caa9b6f48f87b1930b3bcba1ac9319)
-rw-r--r-- | src/amd/vulkan/radv_device.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index f87e17527e0..4fdad7f5c6d 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -575,6 +575,14 @@ radv_handle_per_app_options(struct radv_instance *instance, */ instance->perftest_flags |= RADV_PERFTEST_SHADER_BALLOT; } + } 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; } } |