bindless textures corrupt sampling radv triangle visibility buffer Amnesia mod
Description
I implemented a triangle visibility buffer and i'm running into some rendering artifacts. I've pinned it down to how i'm using non-uniform texture access. I can see this still happening with a single instance of the game but its just more apparent if I run two copies. single capture with renderdoc would be fine so I'm not actually sure what is going on it just when its rendering more then one frame that I see this. I've cut most of the pipelines down to a single pass. I originally thought it was a problem with pipeline barriers but that doesn't seem to be the case. This problem doesn't exist with the amd proprietary drivers. none of the other passes are affected just the visibility buffer pass.
https://github.com/OSS-Cosmic/AmnesiaTheDarkDescent/pull/108
Screenshots/video files
Steps to reproduce
I've attached a binary, I'm using an internal branch of the The-Forge so I can't share that. This is a mod for amnesia so you will need a copy of game to verify.
System information
System:
Host: michaelpollind Kernel: 6.5.0-14-generic arch: x86_64 bits: 64
compiler: N/A Desktop: GNOME v: 45.1 tk: GTK v: 3.24.38 wm: gnome-shell
dm: GDM3 Distro: Ubuntu 23.10 (Mantic Minotaur)
CPU:
Info: 16-core model: AMD Ryzen 9 7950X3D bits: 64 type: MT MCP arch: Zen 4
rev: 2 cache: L1: 1024 KiB L2: 16 MiB L3: 128 MiB
Speed (MHz): avg: 2820 high: 4598 min/max: 400/5759 cores: 1: 4433 2: 400
3: 400 4: 4598 5: 400 6: 3874 7: 4524 8: 400 9: 3877 10: 4465 11: 4275
12: 4429 13: 3455 14: 400 15: 400 16: 400 17: 4457 18: 400 19: 4324
20: 400 21: 3449 22: 4207 23: 4426 24: 3268 25: 3794 26: 3542 27: 400
28: 3378 29: 3483 30: 3458 31: 3309 32: 3218 bogomips: 268800
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD vendor: Gigabyte driver: amdgpu v: kernel pcie: speed: 16 GT/s
lanes: 16 ports: active: HDMI-A-1 empty: DP-1,DP-2,HDMI-A-2 bus-ID: 03:00.0
chip-ID: 1002:747e
Device-2: AMD Raphael vendor: Gigabyte driver: amdgpu v: kernel
arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: none empty: DP-3,
DP-4, DP-5, HDMI-A-3 bus-ID: 16:00.0 chip-ID: 1002:164e temp: 39.0 C
Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 23.2.0
compositor: gnome-shell driver: X: loaded: amdgpu
unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi gpu: amdgpu
display-ID: :0 screens: 1
Screen-1: 0 s-res: 3440x1440 s-dpi: 96
Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: LG (GoldStar) ULTRAWIDE
res: 3440x1440 dpi: 109 diag: 867mm (34.1")
API: OpenGL v: 4.6 Mesa 23.2.1-1ubuntu3.1 renderer: AMD Radeon Graphics
(gfx1101 LLVM 15.0.7 DRM 3.54 6.5.0-14-generic) direct-render: Yes
- OS: Ubuntu 23.10
- GPU: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:747e] (rev c8) 16:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c9)
- Kernel version: 6.5.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:59:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
- Mesa version: OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1
- Desktop environment: ubuntu:GNOME