radv: Counter Strike 2 has multiple bugs while rendering smoke grenade effect
Device Information
System:
Host: xeno16 Kernel: 6.5.0-rc6-273-tkg-eevdf arch: x86_64 bits: 64
compiler: gcc v: 13.2.1 Desktop: KDE Plasma v: 5.27.7 tk: Qt v: 5.15.10
wm: kwin_wayland dm: SDDM Distro: Arch Linux
CPU:
Info: 8-core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64
type: MT MCP arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
Speed (MHz): avg: 1620 high: 3203 min/max: 400/4463 cores: 1: 3180 2: 3198
3: 3186 4: 400 5: 400 6: 400 7: 3200 8: 400 9: 3203 10: 400 11: 400 12: 400
13: 3190 14: 400 15: 3167 16: 400 bogomips: 102200
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] vendor: Hewlett-Packard
driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports:
active: none empty: DP-1,HDMI-A-1 bus-ID: 03:00.0 chip-ID: 1002:73ff
Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
vendor: Hewlett-Packard driver: amdgpu v: kernel arch: GCN-5 pcie:
speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: DP-2 bus-ID: 09:00.0
chip-ID: 1002:1638 temp: 45.0 C
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.0
compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu,amdgpu display-ID: 0
Monitor-1: eDP-1 res: 1920x1080 size: N/A
Issue
The CS2 Beta has multiple bugs when rendering the smoke grenade effect. Mainly the bugs are:
The entire smoke effect failing to render properly
- Seems like it is caused by this commit : 859e059a
- RenderDoc : smoke.rdc.zst
Weird (red) box around the effect when looking through another transparent texture (godrays in this case)
- Seems like it is caused by this commit : aeec9071
-
RADV_DEBUG=nogpl
mitigates this issue - RenderDoc : godrays.rdc.zst
Weird (yellow) border around the smoke effect
- Unable to feasibly bisect this issue
-
RADV_DEBUG=nogpl
mitigates this issue - RenderDoc : oil.rdc.zst
Other Notes
- Tests were done through Wine/Proton (no native build released yet)
- Well none of the issues happen on the AMDVLK driver (meh)
- Curiously none of the issues happen when using DXVK (with mesa)
- The full render and the red box render bugs are in the current mesa staging (23.3)
- The third bug has existed for a very long time and seems related to something implemented long ago in GPL.
Edited by Albert Sebastian