summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Perry <pendingchaos02@gmail.com>2020-12-14 22:00:23 +0000
committerMarge Bot <eric+marge@anholt.net>2021-01-12 15:11:49 +0000
commit255ca7ecda36c3623ef730304a13aa2e8b8c0cf8 (patch)
tree3b13aa6eeb8b955f3e5de1d738b9c69ec4ee7a37
parentf17de6a803d2fd21dc0f74b0cb28a65cd9eca257 (diff)
radv: set invariantgeom for Shadow of the Tomb Raider
Work around flickering foliage on GFX10.3 Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4064 Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8104>
-rw-r--r--src/amd/vulkan/radv_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index d86d2acb878..7c10d24ed7d 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -607,6 +607,10 @@ 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, "ShadowOfTheTomb")) {
+ /* Work around flickering foliage for native Shadow of the Tomb Raider
+ * on GFX10.3 */
+ instance->debug_flags |= RADV_DEBUG_INVARIANT_GEOM;
}
}