https://bugs.freedesktop.org/show_bug.cgi?id=86038
Bug ID: 86038 Summary: [radeonsi] Dreamfall Chapters: heavy visual corruption Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: kai@dev.carbon-project.org
Created attachment 109134 --> https://bugs.freedesktop.org/attachment.cgi?id=109134&action=edit Heavy visual corruption with radeonsi in Dreamfall Chapters
Let me preface this report with the note, that some visual corruption was expected with Dreamfall Chapters on Linux, since there are some broken shaders and the developers are working on fixing those.
With the radeonsi driver (see below for the full graphics stack in use) the visual corrutpion is on the unplayable level, since large parts of the screen are black in certain scenes (it seems to be, when one particular light shader is in use, which also bothers the proprietary driver, but not to this extent). See the attached screenshot for an example how this looks. This is not an Hyper-Z issue, I tried R600_DEBUG=nohyperz to no avail.
For reference I'll also post a screenshot of the same scene with the proprietary driver (which was a PITA to get running, I hate that thing so much), where you can see the difference.
Please let me know, what else you might need to debug this.
My current stack is (Debian testing as a base): GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1) Mesa: Git:master/1a170980a0 libdrm: Git:master/00847fa48b LLVM: SVN:trunk/r220648 (3.6 devel) X.Org: 2:1.16.1-1 Linux: Git:git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git:v3.18-rc1 + attachment 107451 and attachment 107544 Firmware: http://people.freedesktop.org/~agd5f/radeon_ucode/
libclc: Git:master/7f6f5bff1f DDX: 1:7.5.0-1
https://bugs.freedesktop.org/show_bug.cgi?id=86038
Kai kai@dev.carbon-project.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #109134|text/plain |image/jpeg mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=86038
--- Comment #1 from Kai kai@dev.carbon-project.org --- Created attachment 109135 --> https://bugs.freedesktop.org/attachment.cgi?id=109135&action=edit Minor visual corruption with fglrx 14.9
This screenshot shows the corrruption I see in the same scene with a fglrx 14.9 (on a 3.16 kernel, since fglrx won't work with 3.18-rc1, some module compilation failure due to ACPI changes). This kin of corruption was expected, when reading the patch notes for Dreamfall Chapters and the FAQ.
https://bugs.freedesktop.org/show_bug.cgi?id=86038
Kai kai@dev.carbon-project.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[radeonsi] Dreamfall |[radeonsi] Dreamfall |Chapters: heavy visual |Chapters: heavy visual |corruption |corruption, large parts of | |the screen are black in | |some scenes
https://bugs.freedesktop.org/show_bug.cgi?id=86038
--- Comment #2 from Kai kai@dev.carbon-project.org --- I've updated Mesa and LLVM, but that didn't help. The new stack is detailed below. I forgot to write in comment #0, that the first visual corruption (black rectangles flickering in and out of existance) occurs in the main menu.
And I like to add another observation: when you press escape (ie. pause the game) while there's a visual corruption visible like the one depicted in attachment 109134, the amount of corruption is reduced significantly. Not as good as with the proprietary driver, but still way better than in the running game. The pause menu is basically a grey overlay with the menu options onto a "still image" of the scene you've paused in.
My current stack is (Debian testing as a base): GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1) Mesa: Git:master/a6d8413d7c libdrm: Git:master/00847fa48b LLVM: SVN:trunk/r221577 (3.6 devel) X.Org: 2:1.16.1-1 Linux: Git:git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git:v3.18-rc1 + attachment 107451 and attachment 107544 Firmware: http://people.freedesktop.org/~agd5f/radeon_ucode/
libclc: Git:master/7f6f5bff1f DDX: 1:7.5.0-1
https://bugs.freedesktop.org/show_bug.cgi?id=86038
--- Comment #3 from Michel Dänzer michel@daenzer.net --- Can you create an apitrace reproducing the problem?
https://bugs.freedesktop.org/show_bug.cgi?id=86038
--- Comment #4 from Kai kai@dev.carbon-project.org --- (In reply to Michel Dänzer from comment #3)
Can you create an apitrace reproducing the problem?
Sure, here you go: http://dev.carbon-project.org/debian/mesa.bugs/86038/dreamfall.trace.7z (file should be completely upload in about 15 minutes after this comment is posted.) The trace starts in the main menu where I waited until I got one of those flickering rectangles. Afterwards I started a new game and skipped the parts of the intro that don't show any additional errors besides the flickering rectangles. The main part of the trace is the storytime intro sequence where the light shader makes large parts of the screen black. I also pressed pause a few times to show what I meant in comment #2. What you can see in the pause menu is basically what you get with fglrx all the time, maybe a bit worse.
As with the apitrace for bug 84570 I password-protected the download directory to prevent unnecessary downloads (it is rather large), but I gladly provide known Mesa developers with access, just send me a short e-mail.
@Michel: you should have received an e-mail by now with your login information. Feel free to share it internally.
Let me know, if you need something else.
https://bugs.freedesktop.org/show_bug.cgi?id=86038
--- Comment #5 from Kai kai@dev.carbon-project.org --- Just FYI: 076faa59f5c748b80a594c55e5e484b3 dreamfall.trace.7z
The file has (packed) 1.6 GB in size and 5.1 GB unpacked.
https://bugs.freedesktop.org/show_bug.cgi?id=86038
Alexandre aarnsgonzales@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|dri-devel@lists.freedesktop |aarnsgonzales@gmail.com |.org |
--- Comment #6 from Alexandre aarnsgonzales@gmail.com --- Created attachment 109252 --> https://bugs.freedesktop.org/attachment.cgi?id=109252&action=edit Dreamfall printscreen game: game running "ok"
This is how the image of the game, when he is running "ok". This is a printscreen from another player.
https://bugs.freedesktop.org/show_bug.cgi?id=86038
Kai kai@dev.carbon-project.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|aarnsgonzales@gmail.com |dri-devel@lists.freedesktop | |.org
--- Comment #15 from Kai kai@dev.carbon-project.org --- Resetting assignee, which Alexandre must have taken by accident.
(In reply to Alexandre from comment #14)
What must I do to adopt or switch in my machine to a open-source driver then?
PS: what's a AFAIK?
I've answered both your questions by private e-mail.
https://bugs.freedesktop.org/show_bug.cgi?id=86038
--- Comment #16 from Kai kai@dev.carbon-project.org --- Created attachment 109319 --> https://bugs.freedesktop.org/attachment.cgi?id=109319&action=edit No visual corruption on Intel (Sandybridge)
Just FYI: I had the chance to test the game on an Intel Sandybridge system and there's no visible visual corruption in the same scene (even if it's not the same frame). So the shader is probably ok?
The Mesa version running on that system, is a bit older though: 10.4-devel, commit 5ccdc23a86 (and a build from 2014-09-28).
https://bugs.freedesktop.org/show_bug.cgi?id=86038
--- Comment #17 from Kai kai@dev.carbon-project.org --- Happy tidings: with Mesa commit 88fea85f09 and LLVM SVN r222517 (see below for the full stack) I get a lot less visual corruption, than before, see https://imgur.com/a/8g3Sp. The Catalyst is still better because there aren't any black areas around the mountain ranges from the intro scene. But in the scene looking out on the palm trees, I'd say, Catalyst/fglrx and radeonsi are now on par.
Long story short: a lot better, but still ways to go. It looks like part of this bug was the same as the later reported bug 86432.
Let me know, if you need something else – like a new apitrace – to debug this.
My current stack is (Debian testing as a base): GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1) Mesa: Git:master/88fea85f09 libdrm: Git:master/00847fa48b LLVM: SVN:trunk/r222517 (3.6 devel) X.Org: 2:1.16.1-1 Linux: Git:git://people.freedesktop.org/~agd5f/linux:drm-next-3.19-wip/d13184cad0 Firmware: http://people.freedesktop.org/~agd5f/radeon_ucode/
libclc: Git:master/7f6f5bff1f DDX: 1:7.5.0-1
https://bugs.freedesktop.org/show_bug.cgi?id=86038
Kai kai@dev.carbon-project.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #109134|0 |1 is obsolete| |
https://bugs.freedesktop.org/show_bug.cgi?id=86038
--- Comment #18 from Kai kai@dev.carbon-project.org --- Since I've updated my stack and there was a new Dreamfall Chapters release (1.1.2), I had a look at the intro scene again. But it looks still like I described in comment #17.
My current stack (Debian testing as a base) is: GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1) Mesa: Git:master/a2f2eebfdf libdrm: Git:master/00847fa48b LLVM: SVN:trunk/r223220 (3.6 devel) X.Org: 2:1.16.1-1 Linux: Git:git://people.freedesktop.org/~agd5f/linux:drm-next-3.19-wip/f66d9660a0 Firmware: http://people.freedesktop.org/~agd5f/radeon_ucode/
libclc: Git:master/229064524b DDX: Git:master/c9f8f642fd
https://bugs.freedesktop.org/show_bug.cgi?id=86038
Kai kai@dev.carbon-project.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #19 from Kai kai@dev.carbon-project.org --- With my current stack (see below) this bug is fixed. I didn't test it, but could this be related to Marek's fix for the UE4 demos (NaN handling)? Maybe that's a patch you want to backport to the stable branches, then.
My current stack (Debian testing as a base) is: GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1) Mesa: Git:master/61711316f5 libdrm: Git:master/00847fa48b LLVM: SVN:trunk/r224079 (3.6 devel) X.Org: Git:master/6672606420 Linux: Git:git://people.freedesktop.org/~agd5f/linux:drm-next-3.19-wip/f66d9660a0 Firmware: http://people.freedesktop.org/~agd5f/radeon_ucode/
libclc: Git:master/0bb35f11b2 DDX: Git:master/c9f8f642fd
https://bugs.freedesktop.org/show_bug.cgi?id=86038
--- Comment #20 from Kai kai@dev.carbon-project.org --- (In reply to Kai from comment #19)
LLVM: SVN:trunk/r224079 (3.6 devel)
Just to set the record straight: I meant r225079. Sorry for the typo.
dri-devel@lists.freedesktop.org