https://bugs.freedesktop.org/show_bug.cgi?id=108317
Bug ID: 108317 Summary: [Polaris] Black Textures on Polaris only in Cemu Zelda Breath of the Wild Product: DRI Version: XOrg git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: major Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: johngaltfirstrun@gmail.com
Created attachment 141975 --> https://bugs.freedesktop.org/attachment.cgi?id=141975&action=edit dmesg from boot to the issue.
In this game on Polaris, most of the textures are black (see attachment). This doesn't occur on Tahiti or Pitcairn, and happens on both 4.18.x and amdgpu-staging-drm-next. As far as I'm aware, this has always been an issue on Polaris.
There doesn't seem to be anything in these logs I was told to submit in #radeon, so please let me know what else I can do for you. I'm comfortable building any packages with patches or additional debugging (if applicable).
I've attached dmesg from boot to the issue (nothing I can see), along with glxinfo, Xorg.0.log, and a screenshot of the issue.
Thank you.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
John Galt johngaltfirstrun@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|XOrg git |DRI git
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #1 from John Galt johngaltfirstrun@gmail.com --- Created attachment 141976 --> https://bugs.freedesktop.org/attachment.cgi?id=141976&action=edit glxinfo
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #2 from John Galt johngaltfirstrun@gmail.com --- Created attachment 141977 --> https://bugs.freedesktop.org/attachment.cgi?id=141977&action=edit Xorg log
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #3 from John Galt johngaltfirstrun@gmail.com --- Created attachment 141978 --> https://bugs.freedesktop.org/attachment.cgi?id=141978&action=edit Screenshot of the issue
https://bugs.freedesktop.org/show_bug.cgi?id=108317
John Galt johngaltfirstrun@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[Polaris] Black Textures on |[Polaris] Black Textures |Polaris only in Cemu Zelda |only on Polaris in Cemu |Breath of the Wild |Zelda Breath of the Wild
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #4 from John Galt johngaltfirstrun@gmail.com --- I forgot to mention, if IRC works better for communication for anyone, I'm TheRealJohnGalt on Freenode #radeon.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #5 from Alex Deucher alexdeucher@gmail.com --- This is more likely an llvm or mesa issue than a kernel issue.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|DRM/AMDgpu |Drivers/Gallium/radeonsi QA Contact| |dri-devel@lists.freedesktop | |.org Version|DRI git |unspecified Product|DRI |Mesa
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #6 from John Galt johngaltfirstrun@gmail.com --- (In reply to Alex Deucher from comment #5)
This is more likely an llvm or mesa issue than a kernel issue.
Okay. Seeing as this issue has always persisted on Polaris since mesa mild (when this game was first playable on linux), I'm not sure where to go from here since I can't bisect. Please let me know if there's any additional logging I can get.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #7 from Xalphenos latebyteshow@gmail.com --- I don't know if or in what way I could help but I wanted to add my experiences with this.
I've been using testing this for about the last year with various cards and here are my findings. The issue seems to be that most textures are rendered black. Light sources are fine and anything transparent is fine. https://i.imgur.com/J2HCAkb.png
The following are all cards that I have personally tested.
rx 470 4gb Has this issue. r9 280 3gb Does not r9 Fury Has this issue rx 460 2gb has this issue vega 8(2200g) Does not
Since I've been at this for so long I've ran in to dozens of others trying to run this emulator as well.
Though not tested by me it seems we can add rx 480 and 580 as having the issue and vega 56 and vega 64 as not having the issue.
I've been running this on mesa-git from lcarlier for nearly the last year and the results have always been the same.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #8 from John Galt johngaltfirstrun@gmail.com --- I've found evidence of Polaris users without this issue on llvm 6 + mesa mild. However, my attempts at downgrading and building with llvm 6 and current mesa haven't gone well yet.
At least we know this is probably a regression in llvm 7+
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #9 from Nicolai Hähnle nhaehnle@gmail.com --- Thanks for the report. An apitrace that reproduces the problem would be extremely helpful.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #10 from John Galt johngaltfirstrun@gmail.com --- Created attachment 142047 --> https://bugs.freedesktop.org/attachment.cgi?id=142047&action=edit apitrace of running the game, navigating the menu, and loading the game.
Thank you for the attention on this issue. Please let me know what else I can do to help with this.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #11 from John Galt johngaltfirstrun@gmail.com --- Would using renderdoc help at all?
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #12 from John Galt johngaltfirstrun@gmail.com --- llvm 5.0.2 + mesa mild + http://sprunge.us/oPqhzd + polaris, still not past the regression: https://i.imgur.com/RAOwPtM.png
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #13 from John Galt johngaltfirstrun@gmail.com --- llvm 6.0.1 + above patch + mesa mild + polaris still has the same regression. At this point unsure personally if this has ever worked despite users saying it worked at one point on polaris.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #14 from John Galt johngaltfirstrun@gmail.com --- It would seem that there was only ever one or two reports of this working on Polaris, and they're probably either fake or incorrect for other reasons (like running amdgpu-pro and not realizing).
Unfortunately this means that Polaris probably never worked here.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
John Galt johngaltfirstrun@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[Polaris] Black Textures |[GCN3] Black Textures only |only on Polaris in Cemu |on GCN3 in Cemu Zelda |Zelda Breath of the Wild |Breath of the Wild (OpenGL | |4.5)
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #15 from John Galt johngaltfirstrun@gmail.com --- I've updated the main issue to reflect that this is affects all gcn3 cards specifically (AI + VI), and no <=gcn2 or gcn5 cards.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #16 from John Galt johngaltfirstrun@gmail.com --- I thought I tested this before, and it turns out I had written R600DEBUG instead :(.
R600_DEBUG=nohyperz works around this issue.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
John john.ettedgui@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |john.ettedgui@gmail.com
--- Comment #17 from John john.ettedgui@gmail.com --- I confirm the issue on a 580 and the workaround worked as well!
https://bugs.freedesktop.org/show_bug.cgi?id=108317
Timothy Arceri t_arceri@yahoo.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO
--- Comment #18 from Timothy Arceri t_arceri@yahoo.com.au --- (In reply to John Galt from comment #12)
llvm 5.0.2 + mesa mild + http://sprunge.us/oPqhzd + polaris, still not past the regression: https://i.imgur.com/RAOwPtM.png
I had to do a google search to find out what "mesa mild" is. Please do not use this, it seems that was a hack to workaround the fact that radeonsi did not have compatibility profile support. The dev version of Mesa in git has had 4.5 support for a number of months now. As will the stable 18.3 release due out very soon.
Can you check if this is still a problem in Mesa from git? There is no need to use "mesa mild" it's just forked version on Mesa from June. It seems the original author deleted the project when we got compat support in master and somebody has revived the repo. I really wish they had not done so.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #19 from John john.ettedgui@gmail.com --- This is a problem with mesa master, I've never used mild myself and still have the issue.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #20 from Dimitar Atanasov phusho@yahoo.com --- I have same problem with kernel 5.0 rc2 and Mesa 19git 7bef192 (trough Padoka PPA), picture is OK if you use R600_DEBUG=nohyperz. For me it is around 10 FPS less with this option set in some games. VegaM.
https://bugs.freedesktop.org/show_bug.cgi?id=108317
--- Comment #21 from John john.ettedgui@gmail.com --- Maybe until a fix is found, could we add a driconfig workaround that disables hyperz automatically for cemu.exe?
https://bugs.freedesktop.org/show_bug.cgi?id=108317
GitLab Migration User gitlab-migration@fdo.invalid changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Resolution|--- |MOVED
--- Comment #22 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/1334.
dri-devel@lists.freedesktop.org