Since Mesa commit ccdcf91104a5f07127b5b8d8570b5c4bbcf86647 most KDE or Qt applications display with their red and blue color channels swapped. The only unaffected Qt windows seem to be those with an alpha channel (Konsole, Plasma). GTK applications do not seem to be affected.
All affected windows use visual 0x3f5:
0x3f5 24 tc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
This happens with and without compositing. It also does not matter which Mesa version is used by the application itself - as long as the X server was started with a broken Mesa version installed, the color channels are swapped.
GPU: Radeon R9 380X (tonga)
Mesa 11.3.0-devel (git-1883613)
X Server: git-16e4bce (1.17.4 is also affected)
DDX: xf86-video-amdgpu git-b930067
Thanks for tracking this down Daniel, I was loosing my mind.
Same issue here on Radeon 7950/TAHITI with mesa/xserver git. Reverting that commit fixes it.
While most windows seem ok for me, I see funny colours especially with kpinentry windows. But maybe all others use an alpha channel, haven't checked that.
CCing reviewers of that commit for some visibility. Can't seem to find Rob (the author) in the Bugzilla data base. Will Cc him by e-mail.
Created attachment 123198 [details] [review]
Could you please try this patch?
Created attachment 123200 [details]
More wrong colours in more places
(In reply to Marek Olšák from comment #3)
> Created attachment 123198 [details] [review] [review]
> possible fix
> Could you please try this patch?
I've tested it with the stack detailed below and this is worse than without the patch (see attached screenshot, I'll attach one without your patch as well), now the taskbar shows the switched colours as well. I restarted X/SDDM to make sure everything was using the new library versions.
The following stack (Debian testing as a base) was used:
GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1)
LLVM: SVN:trunk/r267209 (3.9 devel)
Let me know, if you need something else.
Created attachment 123201 [details]
Taskbar with correct colours
The attached image shows the taskbar without the patch (again, after a restart of X/SDDM).
Closing. I've revert the problematic commit.
on Feb 26, 2017 at 21:19:59.
(provided by the Example extension).