radv: enable zerovram for Quantic Dream games
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 1 Jul 2020 15:00:55 +0000 (16:00 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Jul 2020 14:44:35 +0000 (14:44 +0000)
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 <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: <mesa-stable@lists.freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5710>

src/amd/vulkan/radv_device.c

index 6bec8f4a675b3a9940cbe80c8d8ac7cda8970a75..7a67f31fef723946cb819ee087a463a3c06aea4a 100644 (file)
@@ -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;
                }
        }