https://bugs.freedesktop.org/show_bug.cgi?id=110635
Bug ID: 110635 Summary: briefly flashing corruption when playing various OGL games Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: tempel.julian@gmail.com QA Contact: dri-devel@lists.freedesktop.org
I'm seeing briefly flashing corruption in various OGL games, mostly Dying Light and Counter-Strike Global Offensive Danger Zone. But I once also saw it in X-Plane 11. Happens with Mesa 18 and git and llvm 8 and git, but likely also even older versions in both cases.
I was able to capture it by recording a video and then extracting an affected frame: https://abload.de/img/mpv-shot0001hkjyr.png
Across the aforementioned games, the artifacts look akin or the same. Can also be brighter squares though.
Hardware issue is unlikely, as radv / amdvlk never show this issue (and Windows driver neither).
I fail to see a pattern when this corruption occurs, it seems like total chance to me while gaming.
This is with an RX 580 on Arch.
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #1 from Timothy Arceri t_arceri@yahoo.com.au --- Looks like it might be the same as bug #110575.
Do either of these go away when you run steam with the following:
R600_DEBUG=zerovram steam
Or setting the launch options for the game in steam to:
R600_DEBUG=zerovram %command%
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #2 from tempel.julian@gmail.com --- The mesa-git build of mine was from after that commit, and a profile already applies it to Dying Light as well. :)
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #3 from tempel.julian@gmail.com --- Skyrim in both wined3d and Gallium Nine is affected as well. How could we start bisecting it? It seems something's broken in Gallium and I'd really like to have it fixed. :)
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #4 from tempel.julian@gmail.com --- It looks a lot like it that AMD_DEBUG=nodma prevents the artifacts from occurring.
https://bugs.freedesktop.org/show_bug.cgi?id=110635
Danylo danylo.piliaiev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |danylo.piliaiev@gmail.com
--- Comment #5 from Danylo danylo.piliaiev@gmail.com --- Yep, AMD_DEBUG=nodma works
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #6 from Andrew Sheldon asheldon55@gmail.com --- I get similar symptoms with Assassins Creed: Unity run under DXVK (with RADV). The issue doesn't occur with LLVM8, and seems to be a regression in LLVM9 since it worked fine with the last compile of LLVM9 I used (early May).
The workarounds don't work in my case (nodma, zerovram) so it might be a separate issue.
Here's a screenshot of the glitch: https://imgur.com/aUgSjW1 See top left for most obvious example of it, although you can see blockiness across the image.
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #7 from tempel.julian@gmail.com --- The OGL issue occurs with both LLVM 8 and 9-git, so there might not be a connection to your radv issue here. I suppose LLVM 9 would also be fine with AMD_DEBUG=nodma & radeonsi, which indicates that the bug really is in the async DMA code of radeonsi (or at least triggers it).
I also would suppose that RADV_PERFTEST= doesn't have to know the same values like AMD_DEBUG=, which afaik applies only to radeonsi.
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #8 from tempel.julian@gmail.com --- Could we get an update on this? Apparently AMD_DEBUG=nodma makes the corruption completely disappear, so it seems the issue really is caused by asynchronous DMA.
If the cause of the issue is not easy to find, perhaps disable async DMA by default? It doesn't seem to affect performance at all (at least not in wined3d and Gallium Nine) and it doesn't look like a good idea to me to have corruption in a vast number of games by default.
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #9 from tempel.julian@gmail.com --- *bump* Situation unchanged with recent llvm-git and mesa-git.
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #10 from tempel.julian@gmail.com --- Bug still present with mesa-git 19.2.0_devel.112439.11a3679e3ab llvm-git 9.0.0_r320439.9e8e8c60fa
Is GFX8 not receiving any fixes anymore?
https://bugs.freedesktop.org/show_bug.cgi?id=110635
--- Comment #11 from Marek Olšák maraeo@gmail.com --- I plan to disable SDMA image copies by default in dGPUs.
https://bugs.freedesktop.org/show_bug.cgi?id=110635
GitLab Migration User gitlab-migration@fdo.invalid changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED
--- Comment #12 from GitLab Migration User gitlab-migration@fdo.invalid --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1399.
dri-devel@lists.freedesktop.org