Mesa Radeon Vulkan Driver "RADV" Works Around Bugs For Unreal Engine 4 & 5
Going back months have been a variety of bug reports around visual glitches and other on-screen artifacts appearing when running Unreal Engine 5 demos and more. This has been common to Unreal Engine games and using the Mesa Radeon Vulkan driver.
Ultimately it comes down to Unreal Engine relying on uninitialized vRAM and that if making use of RADV's zero vRAM behavior for zeroing out the video memory the rendering issues go away. The behavior to initialize all memory allocated in vRAM as zero can also be set manually via the RADV_DEBUG=zerovram environment variable.
This patch now in Mesa 24.0-devel and marked for back-porting to the Mesa 23.3/23.2 stable series will set the "radv_zero_vram" behavior automatically when running the Unreal Engine as detected by the Vulkan engine name. This one line of XML in turn closes at least a handful of known Mesa RADV bugs. This option has also been used for fixing other game issues with RADV where the games/engine expect their vRAM to be zeroed out.