From e4654a35b00315465ad84afcf92162ddf15eec40 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 1 Jul 2020 16:00:55 +0100 Subject: [PATCH] radv: enable zerovram for Quantic Dream games Fixes various artifacts with Detroit: Become Human. This assumes other Vulkan games using the same engine could have the same issues. Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset Cc: Part-of: --- src/amd/vulkan/radv_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 6bec8f4a675..7a67f31fef7 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -569,6 +569,9 @@ radv_handle_per_app_options(struct radv_instance *instance, * rendering issues. */ instance->debug_flags |= RADV_DEBUG_ZERO_VRAM; + } else if (!strcmp(engine_name, "Quantic Dream Engine")) { + /* Fix various artifacts in Detroit: Become Human */ + instance->debug_flags |= RADV_DEBUG_ZERO_VRAM; } } -- 2.30.2