Bug 102522 - [radeonsi, bisected] commit 147d7fb772 causes full-window map to flash green in Crea
Summary: [radeonsi, bisected] commit 147d7fb772 causes full-window map to flash green ...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-02 19:06 UTC by Kaelyn T
Modified: 2019-05-07 15:48 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Output of "glxinfo -s -l" (109.19 KB, text/plain)
2017-09-02 19:06 UTC, Kaelyn T
Details
Crea screenshot showing visual corruption (180.78 KB, image/png)
2018-06-27 16:38 UTC, Kaelyn T
Details

Description Kaelyn T 2017-09-02 19:06:56 UTC
Created attachment 133944 [details]
Output of "glxinfo -s -l"

In the game Crea (http://store.steampowered.com/app/280520 and https://www.humblebundle.com/store/crea), when opening the map to the full-window, non-overlay view on recent Mesa, the screen constantly flashes with a green hatching that makes the map impossible to make out. The flashing seems to occur between frames, since the snapshots taken by glretrace don't reflect the issue even though replaying a trace does. The problem first shows up with commit 147d7fb772 "st/mesa: add a winsys buffers list in st_context".

The apitrace https://drive.google.com/file/d/0B-61xmxFzL-fTklGMzRiSERlTUE/view?usp=sharing shows the game loading and me bringing up the map; once the non-overlay map mode is reached is when the green flashing starts for me (when Mesa is at or past the aforementioned commit, including 17.2.0-rc5).

I'm running Gentoo Linux on a Ryzen 1800X with a Radeon RX480, and Mesa was compiled against LLVM 4.0.1 (though I usually use Mesa and LLVM git), using gcc 6.4.0 for building everything. And I'm running Xorg 1.19.3 and kernel 4.12.7.
Comment 1 Michel Dänzer 2017-09-05 00:55:09 UTC
Charmaine, any ideas?
Comment 2 Timothy Arceri 2018-05-15 01:44:05 UTC
I don't see any issue on my RX580 with a recent Mesa/llvm/kernel can you confirm this now works for you?

As a side note the game seems to use GL_EXT_gpu_shader4 which Mesa doesn't support  so some shaders fail to compile. They don't seem to use anything special and should just use GLSL 1.30 instead.
Comment 3 Kaelyn T 2018-05-31 22:52:41 UTC
I haven't updated my graphics stack in a while (I last rebuilt llvm and mesa on April 14th), but I'm still seeing the issue with the Crea trace.

OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.23.0, 4.16.12-gentoo, LLVM 7.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.1.0-devel (git-6a519a157b)

I'm also running xorg-server 1.19.99.904 (RC4 of 1.20 iirc) and xf86-video-amdgpu 18.0.1, and for the amdgpu kernel module I have dc=0, dpm=1, aspm=1, runpm=1, and audio=0.

I'll add my results once I've upgraded to the final xorg-server 1.20, current llvm and mesa git, and retry the trace.
Comment 4 Kaelyn T 2018-06-27 16:37:31 UTC
I just replayed the trace I had created while running the 4.17.1 kernel, xorg-server 1.20, LLVM git 78d083b, and Mesa git a6b64d6dde, and I still see the same green flashing/cross-hatching. I've attached a screenshot showing the graphical corruption that occurs upon opening the world map, in case it can offer any clues or insights.
Comment 5 Kaelyn T 2018-06-27 16:38:18 UTC
Created attachment 140368 [details]
Crea screenshot showing visual corruption
Comment 6 Timothy Arceri 2019-05-06 07:46:34 UTC
I still can't reproduce. If you run apitrace with the following environment variable does it help?

radeonsi_zerovram=true apitrace

You can also launch steam and try crea directly:

radeonsi_zerovram=true steam
Comment 7 Kaelyn T 2019-05-07 15:48:44 UTC
I just tried replaying my trace using apitrace 8.0 and the flashing issue didn't occur. I suspect the underlying issue may have been fixed since I previously replayed the trace last June, as I'm currently running Mesa 19.0.3, LLVM 8.0.0, Xorg 1.20.4, and kernel 5.0.10.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.