https://bugs.freedesktop.org/show_bug.cgi?id=94671
Bug ID: 94671 Summary: [radeonsi] Blue-ish textures in Shadow of Mordor Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: 0xe2.0x9a.0x9b@gmail.com QA Contact: dri-devel@lists.freedesktop.org
Red fabric/cloth in Shadow of Mordor benchmark is rendered in blue color.
mesa-git built date: 2016-Mar-22 07:16:38 CET
https://bugs.freedesktop.org/show_bug.cgi?id=94671
--- Comment #1 from Jan Ziak 0xe2.0x9a.0x9b@gmail.com --- Created attachment 122494 --> https://bugs.freedesktop.org/attachment.cgi?id=122494&action=edit Screenshot: AMD OpenGL driver
https://bugs.freedesktop.org/show_bug.cgi?id=94671
--- Comment #2 from Jan Ziak 0xe2.0x9a.0x9b@gmail.com --- Created attachment 122495 --> https://bugs.freedesktop.org/attachment.cgi?id=122495&action=edit Screenshot: Mesa radeonsi OpenGL
https://bugs.freedesktop.org/show_bug.cgi?id=94671
--- Comment #3 from Jan Ziak 0xe2.0x9a.0x9b@gmail.com --- Further information:
- Linux kernel 4.5.0 - Kernel module: radeon
$ glxinfo | grep OpenGL OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD HAWAII (DRM 2.43.0, LLVM 3.8.0) OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.3.0-devel (git-530593d)
https://bugs.freedesktop.org/show_bug.cgi?id=94671
Jan Ziak 0xe2.0x9a.0x9b@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|Other |x86-64 (AMD64) OS|All |Linux (All)
https://bugs.freedesktop.org/show_bug.cgi?id=94671
Jan Ziak 0xe2.0x9a.0x9b@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86-64 (AMD64) |All
https://bugs.freedesktop.org/show_bug.cgi?id=94671
--- Comment #4 from Ernst Sjöstrand ernstp@gmail.com --- I saw this too with Amdgpu Fury.
https://bugs.freedesktop.org/show_bug.cgi?id=94671
--- Comment #5 from Nicolai Hähnle nhaehnle@gmail.com --- Thank you for the report.
I suspect some of the BGR <-> RGB changes for shader image bitcasts are responsible. Could one of you please provide an apitrace that shows the problem? That would be very helpful.
https://bugs.freedesktop.org/show_bug.cgi?id=94671
--- Comment #6 from Jan Ziak 0xe2.0x9a.0x9b@gmail.com --- (In reply to Nicolai Hähnle from comment #5)
Thank you for the report.
I suspect some of the BGR <-> RGB changes for shader image bitcasts are responsible. Could one of you please provide an apitrace that shows the problem? That would be very helpful.
Running Shadow of Mordor under apitrace 6.1 is very slow. I didn't run the benchmark because the ingame menu screen wasn't responding. However, the menu screen already has the blue-ish tint that shouldn't be there.
The trace is quite large: 392 MB uncompressed, 219 MB compressed with xz.
Do you still want the trace despite its size?
If not, do you want me to run apitrace on AMD's Opengl library and then perform "apitrace diff ShadowOfMordor-radeonsi.trace ShadowOfMordor-amd.trace"?
https://bugs.freedesktop.org/show_bug.cgi?id=94671
--- Comment #7 from Nicolai Hähnle nhaehnle@gmail.com --- Hi Jan! First, please try this patch which fixes a similar bug: https://patchwork.freedesktop.org/patch/78118/
If that doesn't fix the problem: I'd appreciate if you could upload the apitrace somewhere (Dropbox, Google Drive, etc.). A diff is not going to be useful.
But first, try if the problem is already fixed with the patch above :)
https://bugs.freedesktop.org/show_bug.cgi?id=94671
--- Comment #8 from Jan Ziak 0xe2.0x9a.0x9b@gmail.com --- (In reply to Nicolai Hähnle from comment #7)
Hi Jan! First, please try this patch which fixes a similar bug: https://patchwork.freedesktop.org/patch/78118/
If that doesn't fix the problem: I'd appreciate if you could upload the apitrace somewhere (Dropbox, Google Drive, etc.). A diff is not going to be useful.
But first, try if the problem is already fixed with the patch above :)
The patch works!
https://bugs.freedesktop.org/show_bug.cgi?id=94671
--- Comment #9 from Jan Ziak 0xe2.0x9a.0x9b@gmail.com --- Created attachment 122511 --> https://bugs.freedesktop.org/attachment.cgi?id=122511&action=edit Screenshot: Mesa radeonsi OpenGL - patched
https://bugs.freedesktop.org/show_bug.cgi?id=94671
Nicolai Hähnle nhaehnle@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #10 from Nicolai Hähnle nhaehnle@gmail.com --- Fixed in Mesa master, commit 6b763c0
dri-devel@lists.freedesktop.org