Module: Mesa Branch: master Commit: 255ca7ecda36c3623ef730304a13aa2e8b8c0cf8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=255ca7ecda36c3623ef730304a13aa2e8b8c0cf8
Author: Rhys Perry <pendingchao...@gmail.com> Date: Mon Dec 14 22:00:23 2020 +0000 radv: set invariantgeom for Shadow of the Tomb Raider Work around flickering foliage on GFX10.3 Signed-off-by: Rhys Perry <pendingchao...@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Reviewed-by: Timur Kristóf <timur.kris...@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> --- src/amd/vulkan/radv_device.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit