[RADV] Shadow flicker in Death Stranding with R9 290X (GFX7) and latest VKD3D-Proton
Description
There's lots of lighting related flickering in Death Stranding where shadows cast on buildings etc constantly flicker sort of turning on and off. Environment itself renders normally. I did some digging and it starts with https://github.com/HansKristian-Work/vkd3d-proton/commit/3915090c12cf64cd05ca85364984b1d10eadcc18 that adds depth-stencil stuff, previous VKD3D-Proton revisions are fine.
I tested on latest stable Mesa 21.1.5 and also on new git build that's after #5052 (closed) fix 1ea156f4 so that fix doesn't help with this at least on my R9 290X. My friend with a newer RDNA1/GFX10 RX 5700XT has no flicker with latest VKD3D-Proton so it seems to be an issue only with older generations.
Screenshots/video files
I took a short video of the issue. https://streamable.com/dmlm4o
Steps to reproduce
Have a GFX7-based GPU with latest VKD3D-Proton and start Death Stranding
Play until you get to the cave cutscene with Fragile shortly after the beginning. Alternatively go somewhere with shadows being cast on/by buildings
Lots of lighting flicker should occur
System information
- OS:
Arch Linux
- GPU:
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT / Grenada XT [Radeon R9 290X/390X] [1002:67b0]
- Kernel version:
5.13.5-183-tkg-pds
- Mesa version:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.3.0-devel (git-b3e1f45cfb)
but as mentioned happens also with stable 21.1.5 - Desktop environment:
KDE Plasma