radv: lower discards to demote to workaround a RDR2 game bug

This fixes some sort of LOD issue.

Cc: 20.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5525>
This commit is contained in:
Samuel Pitoiset
2020-06-17 16:35:05 +02:00
parent 34499de5b3
commit c4aa64b4c3

View File

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