radv: set radv_zero_vram=true for Unreal Engine 4/5
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Nov 2023 17:35:29 +0000 (18:35 +0100)
committerEric Engestrom <eric@engestrom.ch>
Wed, 15 Nov 2023 21:21:24 +0000 (21:21 +0000)
Unreal Engine seems to rely on uninitialized memory and
RADV_DEBUG=zerovram fixes a bunch of issues.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9025
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9380
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9026
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26188>
(cherry picked from commit bb92c34c2859c2f5b42c9b6ba4f5603d79b72d33)

.pick_status.json
src/util/00-radv-defaults.conf

index 33f11b6..9020553 100644 (file)
         "description": "radv: set radv_zero_vram=true for Unreal Engine 4/5",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null,
         "notes": null
index df89a79..5678c5e 100644 (file)
@@ -59,6 +59,7 @@ Application bugs worked around in this file:
         <engine engine_name_match="^UnrealEngine"> <!-- UE4/5 Vulkan RHI -->
             <option name="radv_flush_before_query_copy" value="true" />
             <option name="radv_flush_before_timestamp_write" value="true" />
+            <option name="radv_zero_vram" value="true" />
         </engine>
 
         <engine engine_name_match="DXVK_NvRemix">