From: Samuel Pitoiset Date: Wed, 17 Jun 2020 14:35:05 +0000 (+0200) Subject: radv: lower discards to demote to workaround a RDR2 game bug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4aa64b4c346c06af36c223f00a09a43434c1746;p=mesa.git radv: lower discards to demote to workaround a RDR2 game bug This fixes some sort of LOD issue. Cc: 20.1 Signed-off-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann Part-of: --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 2a51c607259..f9afd722dd6 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -579,6 +579,9 @@ 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, "Red Dead Redemption 2")) { + /* Work around a RDR2 game bug */ + instance->debug_flags |= RADV_DEBUG_DISCARD_TO_DEMOTE; } }