radv: 7900 XTX hair flickering/rendering issues in VaM
Describe the issue
Hair in VaM doesn't render correctly. It won't always occur or be noticeable at every camera angle, but if you rotate the camera it will usually flicker very badly and the geometry is generally "unstable" (sometimes you can see strands of hair snapping to the world origin).
This flickering and instability can happen while the camera is still, but it's most reliable to reproduce with a moving camera.
It could possibly be related to this other issue #8934 (closed), but hard to say.
Regression
Did it used to work? Yes, I managed to bisect the issue to 879ddf97, commits prior to this the hair renders as expected which you can see in the videos and screenshots below.
Screenshots/video files (if applicable)
b30f2bf7 (good) | 879ddf97 (bad) |
---|---|
good-2023-05-01_17.47.25 | bad-2023-05-01_17.54.20 |
Other information
This occurs with all kinds of versions of wine and dxvk which I was testing first before I realised the problem was likely mesa instead, but this is what I'm using:
- Wine: lutris-GE-Proton7-41-x86_64
- DXVK: 2.1
Graphics:
Device-1: AMD vendor: Sapphire driver: amdgpu v: kernel pcie:
speed: 16 GT/s lanes: 16 ports: active: DP-1 empty: DP-2,HDMI-A-1,HDMI-A-2
bus-ID: 2f:00.0 chip-ID: 1002:744c
Display: x11 server: X.Org v: 1.21.1.4 compositors: 1: marco v: 1.26.0
2: Picom v: 9.1 driver: X: loaded: modesetting unloaded: amdgpu gpu: amdgpu
display-ID: :0 screens: 1
Screen-1: 0 s-res: 3440x1440 s-dpi: 96
Monitor-1: DP-1 model: Samsung C34J79x res: 3440x1440 dpi: 110
diag: 864mm (34")
OpenGL: renderer: AMD Radeon RX 7900 XTX (gfx1100 LLVM 15.0.7 DRM 3.52
6.3.0-x64v3-xanmod1) v: 4.6 Mesa 23.2.0-devel (git-78ea622 2023-04-29
kinetic-oibaf-ppa) direct render: Yes