https://bugs.freedesktop.org/show_bug.cgi?id=102885
Bug ID: 102885 Summary: regression - 17.2 sparkle grid in shadows Product: Mesa Version: 17.2 Hardware: x86 (IA32) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: darktjm@gmail.com QA Contact: dri-devel@lists.freedesktop.org
Created attachment 134348 --> https://bugs.freedesktop.org/attachment.cgi?id=134348&action=edit Ugly shaded areas
See attached image. While I was retesting many games in wine, I noticed that multiple games, when run in wine, show black background with dot grids instead of alpha blending, apparently. Reverting to 17.1.x fixed this. I haven't the patience or continuous power to my machine to git-bisect; the only thing I can help with is that it doesn't do this with LIBGL_ALWAYS_SOFTWARE=1, so it's likely a radeonsi bug rather than mesa core.
Hardware: Device: AMD Radeon R7 Graphics (AMD CARRIZO / DRM 3.18.0 / 4.13.2-gentoo, LLVM 5.0.0) (0x9874) OpenGL renderer string: AMD Radeon R7 Graphics (AMD CARRIZO / DRM 3.18.0 / 4.13.2-gentoo, LLVM 5.0.0)
Note that this has been broken since the earliest rc I tried, also with earlier releases of the kernel and llvm, firmware from both before and after 06 Sept.
Apologies if this has already been reported; I can't really tell and it has been broken now for at least all rcs I've tried, 17.2 release, and 17.2.1.
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #1 from Samuel Pitoiset samuel.pitoiset@gmail.com --- Can you record a trace with apitrace that reproduces the issue?
If not, which games are affected? What Wine version? Is CSMT enabled?
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #2 from Thomas J. Moore darktjm@gmail.com --- (In reply to Samuel Pitoiset from comment #1)
Can you record a trace with apitrace that reproduces the issue?
I could, I guess. I've never used the tool before, though, and have no idea how to trim it to the relevant part. I can't attach a 179MB trace file (109M compressed). I tried trimming to just the relevant region(s), but it's screwy at best, and mostly garbage in the replay, I doubt it's useful.
If not, which games are affected? What Wine version? Is CSMT enabled?
I dunno. I erased my notes after I discovered at least 4 broken games; at that point, I realized that these problems only started around the later tests, where Mesa had been auto-updated to 17.2-some rc by my regular system updates, so I stopped blaming wine and tried reverting Mesa instead. The only ones I still remember are KOTOR (because it was worst) and Chains of Satinav. The attached picture is from the former; I test the presence of the bug using the latter, because KOTOR often has (unrelated) trouble starting up. Note that neither game shows this problem all the time: Satinav only shows it in the cursor when the cursor is over a selectable area, and KOTOR only shows it at certain viewing angles (I don't really know what the difference is). Both, and others that had issues, displayed brief flashes of dot grids at various other times as well. I currently use Wine 2.0.2, 2.15, 2.15-staging, and with/without gallium-d3d9. I can assure you that I tried all combinations of the above when I discovered it didn't work normally. 2.0.2 doesn't use csmt by default, and 2.15 does, so apparently csmt doesn't make a difference.
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #3 from Samuel Pitoiset samuel.pitoiset@gmail.com --- Yeah, please upload the trace somewhere. You can use dropbox or some other similar services.
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #4 from Thomas J. Moore darktjm@gmail.com --- I said I wouldn't, but I went ahead and did a git-bisect:
878bd981bf7aac1466ba3278796f200fa329e2af is the first bad commit
If I have an opportunity later today, I may upload the trace file somewhere.
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #5 from Thomas J. Moore darktjm@gmail.com --- I'm not sure I trust dropbox entirely (it's a bit invasive), but I went ahead and created an account to upload the trace file:
https://www.dropbox.com/s/uo6kllmpr1b5jrt/satinav.trace?dl=0
This is from Chains of Satinav. The sparkle grid appears in the large cursor in the middle of the screen when it's hovering over the ship's window. Normally it is grayish with a wave pattern over it, but when broken, it's just a sparkle grid. Please let me know if/when you're downloaded it, so I know it worked, and I can delete it.
Note that I got a trace from KOTOR as well, but it is not usably replayable, unlike this one.
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #6 from Samuel Pitoiset samuel.pitoiset@gmail.com --- Thanks for the trace (and the bisect), I can reproduce the issue.
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #7 from Samuel Pitoiset samuel.pitoiset@gmail.com --- A temporary workaround is to use R600_DEBUG="nodccfb".
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #8 from Thomas J. Moore darktjm@gmail.com --- (In reply to Samuel Pitoiset from comment #7)
A temporary workaround is to use R600_DEBUG="nodccfb".
Does the existence of this workaround mean you do not intend to fix the bug? Given that there have been 2 17.2 releases (and 17.3 is in rc2) since this was written, and the bug is still present, I guess so. Gentoo is making it really hard to retain my own workaround (don't upgrade to 17.2) due to its dependency on llvm-4, so I guess I'll just have to live with your workaround.
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #9 from Samuel Pitoiset samuel.pitoiset@gmail.com --- No, the bug should be fixed. I just didn't have much time to work on it to be honest.
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #10 from Thomas J. Moore darktjm@gmail.com --- (In reply to Samuel Pitoiset from comment #9)
No, the bug should be fixed. I just didn't have much time to work on it to be honest.
OK, no hurry. It's not like it's corrupting memory or anything, and the workaround does work. I was just concerned it would never be fixed.
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #11 from Timothy Arceri t_arceri@yahoo.com.au --- (In reply to Thomas J. Moore from comment #5)
I'm not sure I trust dropbox entirely (it's a bit invasive), but I went ahead and created an account to upload the trace file:
https://www.dropbox.com/s/uo6kllmpr1b5jrt/satinav.trace?dl=0
This is from Chains of Satinav. The sparkle grid appears in the large cursor in the middle of the screen when it's hovering over the ship's window. Normally it is grayish with a wave pattern over it, but when broken, it's just a sparkle grid. Please let me know if/when you're downloaded it, so I know it worked, and I can delete it.
Note that I got a trace from KOTOR as well, but it is not usably replayable, unlike this one.
Deleting the trace means no one else can investigate the bug. Is this still a problem?
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #12 from Timothy Arceri t_arceri@yahoo.com.au --- Possibly a duplicate of bug 105152
https://bugs.freedesktop.org/show_bug.cgi?id=102885
--- Comment #13 from Thomas J. Moore darktjm@gmail.com --- (In reply to Timothy Arceri from comment #11)
Deleting the trace means no one else can investigate the bug. Is this still a problem?
I assumed Samuel Pitoiset already figured out what the problem was, particularly since the git bisect pointed to a change he made. Perhaps you can contact him directly? It's been six months, and multiple releases of Mesa, so I pretty much don't believe this bug will get looked at, and don't care if it gets fixed or not. Testing if it's still broken is already more trouble for me than it's worth. I don't trust dropbox, and have no intention of uploading this file again.
(In reply to Timothy Arceri from comment #12)
Possibly a duplicate of bug 105152
Feel free to mark it as such, so I don't have to deal with it any more. It's not the first bug of mine that's been marked as a duplicate of a later bug report. (I didn't read it, but again, I don't care any more). If it's not really a duplicate, feel free to just close this as "won't fix".
https://bugs.freedesktop.org/show_bug.cgi?id=102885
Timothy Arceri t_arceri@yahoo.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED
--- Comment #14 from Timothy Arceri t_arceri@yahoo.com.au ---
*** This bug has been marked as a duplicate of bug 105152 ***
dri-devel@lists.freedesktop.org