From: Samuel Pitoiset Date: Fri, 29 May 2020 18:02:49 +0000 (+0200) Subject: radv: enable zero VRAM for Doom Eternal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd5ffd3a83e178f14fcc69806d3a52724f05b56c;p=mesa.git radv: enable zero VRAM for Doom Eternal That fixes some rendering issues. Probably some unitialized data from the game. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3064 Cc: Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 27ff12b5c2c..3ce3d9c3760 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -588,6 +588,9 @@ radv_handle_per_app_options(struct radv_instance *instance, } else if (!strcmp(name, "No Man's Sky")) { /* Work around a NMS game bug */ instance->debug_flags |= RADV_DEBUG_DISCARD_TO_DEMOTE; + } else if (!strcmp(name, "DOOMEternal")) { + /* Zero VRAM for Doom Eternal to fix rendering issues. */ + instance->debug_flags |= RADV_DEBUG_ZERO_VRAM; } }