radv: enable zero VRAM for Doom Eternal
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 29 May 2020 18:02:49 +0000 (20:02 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 3 Jun 2020 05:59:57 +0000 (07:59 +0200)
That fixes some rendering issues. Probably some unitialized data
from the game.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3064
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5262>

src/amd/vulkan/radv_device.c

index 27ff12b5c2cd5a321d21c78c7a90bf6655ab7322..3ce3d9c3760f7101e77b52b15d44b6f50049313c 100644 (file)
@@ -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;
        }
 }