Skip to contentSkip to conversation

briefly flashing corruption when playing various OGL games

Bug 110635 [email protected] 1 participant 13 messages May 7, 2019 – Sep 25, 2019

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=110635

--- Comment #1 from Timothy Arceri <[email protected]> --- 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%

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110635

--- Comment #2 from [email protected] ---
The mesa-git build of mine was from after that commit, and a profile already applies it to Dying Light as well. :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110635

--- Comment #3 from [email protected] ---
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. :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110635

--- Comment #4 from [email protected] ---
It looks a lot like it that AMD_DEBUG=nodma prevents the artifacts from occurring.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110635

Danylo <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #5 from Danylo <[email protected]> --- Yep, AMD_DEBUG=nodma works

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110635

--- Comment #6 from Andrew Sheldon <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110635

--- Comment #7 from [email protected] ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110635

--- Comment #8 from [email protected] ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110635

--- Comment #10 from [email protected] ---
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?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110635

GitLab Migration User <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #12 from GitLab Migration User <[email protected]> --- -- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel