Bug 64738 - missing notification icons with glamor
Summary: missing notification icons with glamor
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Acceleration/glamor (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Zhigang Gong
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-18 11:40 UTC by Alexander Tsoy
Modified: 2014-01-18 16:58 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
screenshot [1] (199.19 KB, image/png)
2013-05-18 11:40 UTC, Alexander Tsoy
no flags Details
screenshot [2] (104.14 KB, image/png)
2013-05-18 11:40 UTC, Alexander Tsoy
no flags Details
Xorg log (58.33 KB, text/plain)
2013-05-18 11:41 UTC, Alexander Tsoy
no flags Details
Screenshot of notification area (11.54 KB, image/png)
2013-05-18 12:39 UTC, Alexander Tsoy
no flags Details
fix for the issue with tray icons not appearing (1.41 KB, patch)
2013-12-10 20:26 UTC, Anthony Waters
no flags Details | Splinter Review

Description Alexander Tsoy 2013-05-18 11:40:01 UTC
I have these problems with Cape Verde Pro (HD 7750) card:
1. Graphics corruption when scrolling in gtk2/gtk3 apps (screenshot [1])
2. Graphics corruption when moving windows in wm whithout compositing. Both gtk and qt apps are affected. No such artifacts when compositing enabled, e.g. in gnome 3. (screenshot [2])
3. Missing notification icons of gtk2 apps in awesome wm.

All of this things works great whithout glamor. Also no such problems with HD 6450 card with both EXA and glamor acceleration.

Software:
- mesa-9.2 from git
- llvm-3.{3,4} from git
- xorg-server-1.13.4, also tried 1.12*
- xf86-video-ati-7.1.0
- glamor-0.5
- linux kernel 3.8* including latest 3.8.13

Also note, that with mesa-9.0* and mesa-9.1* Xorg segfaults at startup on this system when glamor enabled, but this is a subject for another bug report.
Comment 1 Alexander Tsoy 2013-05-18 11:40:27 UTC
Created attachment 79494 [details]
screenshot [1]
Comment 2 Alexander Tsoy 2013-05-18 11:40:55 UTC
Created attachment 79495 [details]
screenshot [2]
Comment 3 Alexander Tsoy 2013-05-18 11:41:46 UTC
Created attachment 79496 [details]
Xorg log
Comment 4 Alexander Tsoy 2013-05-18 11:44:51 UTC
This graphics artifacts are persist until the window is redrawn.
Comment 5 Alexander Tsoy 2013-05-18 12:39:11 UTC
Created attachment 79497 [details]
Screenshot of notification area

No claws-mail and gajim icons here.
Comment 6 Michel Dänzer 2013-05-22 15:34:34 UTC
> - glamor-0.5

Does current glamor Git work better? There have been some fixes which might be relevant.
Comment 7 Alexander Tsoy 2013-05-22 21:40:11 UTC
(In reply to comment #6)

Yes, glamor Git works good. But icons in notification area still missing.
Comment 8 Michel Dänzer 2013-05-23 07:38:19 UTC
(In reply to comment #7)
> Yes, glamor Git works good. But icons in notification area still missing.

I take it that's not the case with the 6450 card either?
Comment 9 Alexander Tsoy 2013-05-23 12:03:43 UTC
(In reply to comment #8)

It's also the case with the 6450 card. Furthermore with 6450 and vanilla glamor-0.5 I see the same graphics artifacts, so sorry for disinformation in comment 0.
Comment 10 Michel Dänzer 2013-05-23 14:11:08 UTC
Then it sounds like it's most likely a glamor issue. Might be interesting if someone could test this on an Intel GPU.
Comment 11 Kertesz Laszlo 2013-09-28 04:03:24 UTC
I too have notification icons missing.

I use Xfce 4.10 on Debian 64-bit, xf86-ati, mesa, libdrm, glamor, kernel from git.
Hardware: A8-5500 APU with Radeon 7560D IGP (ARUBA)

If i use glamor i have certain notification area icons missing.
What is missing: notification icons for Gigolo, virt-manager, Linphone, xfce4-notes and every icon put there by alltray.
What is there (from what i use): notifications icons for Remmina, Skype, Jitsi (java), Audacious, Vlc
The icons are just transparent, otherwise they take up space and can be interacted with.

Other issues from what i have seen so far are the Libreoffice menu highlighted text color which is white instead of black.

Interesting is that if i enable the xfce's own software compositing most of the iccons appear, except the alltrayed ones. But this introduces tearing especially when i drag windows around.
Comment 12 Zhigang Gong 2013-10-19 09:52:50 UTC
Nothing of the symptons could be reproduced with the latest glamor on Intel platform. Could you also update to latest glamor and try again?
Comment 13 Kertesz Laszlo 2013-10-26 19:27:09 UTC
(In reply to comment #12)
> Nothing of the symptons could be reproduced with the latest glamor on Intel
> platform. Could you also update to latest glamor and try again?

I am on the latest glamor, mesa, xf86-ati built from git a few hours ago, kernel 3.12 rc6+ from git built a few days ago, A8-5500 APU (Radeon 7560D IGP).

I still dont have certain icons in the tray on Xfce 4.10. If i use compositing (either the built in one or compton) i get most of them back except the icons that are put there by alltray which still show blank.

EXA shows all icons.

Icons put by Wine, Qt apps, Java, Gtk3 apps seem to work.
But Gtk2 seem to be missing.
For example the system default virt-manager compiled with gtk2 has transparent icon while a newer virt-manager that uses gtk3 has visible icon.
Comment 14 Kertesz Laszlo 2013-11-25 20:02:48 UTC
This issue is still standing with 64 bit kernel (now around 3.13 rc1), latest glamor, mesa, drm, llvm, xf86-ati from git on ARUBA (7560D) card on Xfce when desktop compositing is off. No GTK2 icons (neither 64 bit nor 32 bit apps can have icons there, for example Steam too has it missing).
If its on, all icons show up except the ones created by alltray (kdocker's work though).

When starting an app that has icon, the space is taken for a fraction of a second by some garbled pixels (sometimes other icons entirely with wrong colors or just garbled pixels). This lasts for a fraction of a second and then the space becomes transparent.
Comment 15 Anthony Waters 2013-12-06 03:54:33 UTC
I started looking into this a little bit and may have found something interesting.  When invoking glamor_set_composite_op in glamor_render.c, with op == 3, if one returns GL_FALSE, the notification icons appear.  So having something like

static Bool
glamor_set_composite_op(ScreenPtr screen,
			CARD8 op, struct blendinfo *op_info_result,
			PicturePtr dest, PicturePtr mask)
{
	GLenum source_blend, dest_blend;
	struct blendinfo *op_info;
	if (op == 3) {
		return GL_FALSE;
	}

at the start of the function.  This isn't the correct fix but could lead to the cause of the issue, I checked over op 3 and it appears to stand for PictOpOver.  I'll work on comparing the code with what xf86-video-ati does to see if there is a discrepancy.  I get the odd feeling the issue maybe with the destination picture format because op 3 works in other places, just not with the notification icons.
Comment 16 Anthony Waters 2013-12-10 20:26:30 UTC
Created attachment 90591 [details] [review]
fix for the issue with tray icons not appearing
Comment 17 Anthony Waters 2013-12-10 20:30:57 UTC
I've attached a patch for anyone to try to see if it fixes the issue for them (it did for me).  There were actually two issues with the original code I believe, the first is that the call to glamor_convert_gradient_picture wasn't properly referencing the coordinates of the source/mask pictures.  The second, was that the updated references (x_temp/y_temp) were also improperly set, they should always be 0 because the temp pictures are new ones that start at (0, 0).  The reason it worked in certain cases and it didn't in others (notably the tray icons) was due to the numbers working out based on the call to glamor_composite.  In the cases that it did work extent->x1 would equal x_dest and extent->y1 would equal y_dest, making it so what was actually passed into glamor_convert_gradient_picture and the settings for x_temp/y_temp were correct.  However, for the case when extent->x1 wouldn't equal x_dest and extent->y1 wouldn't equal y_dest (for example with the tray icons) then the wrong parameters get passed into glamor_convert_gradient_picture and x_temp/y_temp are set improperly.
Comment 18 Timothy Lee 2014-01-14 14:12:27 UTC
I'm using xfce4 on an E2-1800 APU (HD7340 IGP).

The patch fixed tray icon issues, LibreOffice menu highlights, as well as rdesktop screen update for me.  I have not seen any undesirable side-effects.

Please consider applying the patch to trunk.
Comment 19 Anthony Waters 2014-01-14 20:30:16 UTC
I think I submitted it correctly to glamor@lists.freedesktop.org as seen at http://lists.freedesktop.org/archives/glamor/2014-January/000530.html
Comment 20 Alexander Tsoy 2014-01-17 07:16:20 UTC
I just tried recent glamor git and it fixed the issue with notification icons. Thank you, Anthony!
Comment 21 Kamil Páral 2014-01-17 08:05:47 UTC
I tried glamor git today (2ac2fc) and the issue does not appear to be fixed for me. I use Fedora Rawhide + GNOME 3, and the steam icon still becomes transparent very often. If I need to trigger it, usually it's sufficient to left-click on it, cancel the menu, and look again into the systray. Radeon R9 270.
Comment 22 Alexander Tsoy 2014-01-17 10:13:09 UTC
Kamil, this looks like a common problem with gtk2 apps in gnome shell. It's unrelated to this bug.
Comment 23 Kamil Páral 2014-01-17 15:25:55 UTC
Alexander, you might be right, I've booted with 'nomodeset' boot option and the problem persists even with the llvmpipe driver. I assume that confirms your assertion. It that case it's a recent regression in gnome-shell, I've never seen it on Fedora 20.
Comment 24 Alexander Tsoy 2014-01-17 19:18:54 UTC
(In reply to comment #23)
> It that case it's a recent regression in gnome-shell, I've
> never seen it on Fedora 20.

Currently I have this issue in gnome 3.8 with gajim and claws-mail. Icons are either cropped or completely invisible.

For example, Claws Mail bug:
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2499
Comment 25 Kertesz Laszlo 2014-01-18 08:10:49 UTC
I can confirm that this issue is resolved with r600g - Radeon HD 8570D on xfce 4 using glamor compiled from git today.
Comment 26 Kertesz Laszlo 2014-01-18 08:11:45 UTC
And it seems it fixed the Libreoffice menu highlight issue too.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.