RADV workaround https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14354.
I've tried various combinations of vkd3d-proton and Mesa commits, but I'm unable to reproduce any flicker in that scene. I also cannot find anything obviously wrong w.r.t. barriers in that trace.
Can no longer be reproduced since vkd3d-proton switched to dynamic rendering by default. I implemented a workaround earlier this year in RADV too, probably no longer useful as well.
RADV_DEBUG=nohizx1 2021-12
It seems the issue is related to a 16-bit depth format with 4 layers. Note that using RADV_DEBUG=nohiz and/or adding more flushes would fix it. The problem can also be reproduced with AMDGPU-PRO (just note that it seems to have a HUGE memleak, but if you are fast enough you can reach that point and reproduce the flickering).
How to reproduce in-game?
See the screenshot below.
https://i.imgur.com/RTL1ess.jpg
This can be reproduced with Mesa git and any older 21.X versions.
GPU: Navi 21 [Radeon RX 6800/6800 XT / 6900 XT]
Renderdoc capture: https://people.freedesktop.org/~hakzsam/f1.rdc (v1.x/d6ef7d51a)
Interesting images are "Depth attachment 7395&7417", there is also some bookmarks in the capture that might help.
Please ask if you need more information.