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>
This commit is contained in:
Rhys Perry 2020-12-14 22:00:23 +00:00 committed by Marge Bot
parent f17de6a803
commit 255ca7ecda

View file

@ -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;
}
}