[radeonsi] flickering debug chunk border lines in Minecraft
System information
- OS: Arch Linux
- GPU: (RX 6600)
08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] [1002:73ff] (rev c7)
- Kernel version:
Linux archbox 6.2.13-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 26 Apr 2023 20:50:14 +0000 x86_64 GNU/Linux
- Mesa version:
4.6 (Compatibility Profile) Mesa 23.0.0-devel (git-028d0590f8)
(happens on HEAD and 23.0.3)
Describe the issue
Chunk border lines (shown by pressing F3+G ingame) flicker and disappear when looking and moving around. The videos and apitraces I have are from a modified version of the game, but I was able to reproduce it on an unmodified copy of Minecraft 1.16.1 as well as other more recent versions such as 1.18.2.
The issue does not occur on other drivers (zink, llvmpipe), just radeonsi.
Regression
A bisect traced this back to 028d0590. The issue still occurs when building from the latest commit. However, it does not occur when using AMD_DEBUG=nooptvariant
or AMD_DEBUG=nonggc
, which I saw suggested in other issues related to this commit. I haven't tested any other debug options.
Log files
Here are 3 apitraces. The first two are functional: pre-break
is from the last good commit (3542d5ce), nonggc
is from the broken commit (028d0590) with AMD_DEBUG=nonggc
. broken
was taken from the broken commit without any debug options.
Screenshots/video files (if applicable)
The above folder (here) contains videos showcasing the issue from when I first encountered it. (radeonsi
is broken, zink
is functional.)