Bug 76127

Summary: [sna] pixelated shadows in oxygen-gtk theme
Product: xorg Reporter: Alexander Mezin <mezin.alexander>
Component: Driver/intelAssignee: Chris Wilson <chris>
Status: RESOLVED MOVED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: minor    
Priority: lowest CC: b7.10110111
Version: 7.7 (2012.06)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Example. Look at the shadow of "Window" menu none

Description Alexander Mezin 2014-03-13 17:02:45 UTC
Created attachment 95729 [details]
Example. Look at the shadow of "Window" menu

Shadows drawn by oxygen-gtk theme engine look pixelated. Example is attached.
On UXA backend shadows are smooth.

Tried both 2.99.910 and git master.

Xorg server 1.15.0
Comment 1 Chris Wilson 2014-03-13 18:07:19 UTC
I think this will be an issue with the precision of the accumulation buffer as ana tries to do this in hardware. A full-debug will confirm my suspicions.
Comment 2 Chris Wilson 2014-03-14 13:37:11 UTC
Details, details, details. If you force me use KDE, you should at least tell me how to configure it to reproduce your effect.
Comment 3 Alexander Mezin 2014-03-14 13:59:30 UTC
If you need details, tell me please, what details do you need.

You don't need KDE to reproduce it, I think.

You could install gtk2-engines-oxygen on debian or oxygen-gtk2 on fedora or package with almost same name on almost any distro, set "oxygen" theme for gtk, and look at shadows of popup menus or tooltips.

At least, I am sure this problem is present on debian sid (if I rebuild the driver with SNA enabled) and current arch linux.

No special configuration is needed. Only oxygen-gtk and SNA.
Comment 4 Chris Wilson 2014-03-14 14:39:31 UTC
Looked at the source code for oxygen-gtk and they are not using convolutions but gradients. The result is just the precision of your GPU to compute an alpha gradient.
Comment 5 Ruslan Kabatsayev 2014-03-14 18:39:16 UTC
To reproduce it, additionally to oxygen-gtk+gtk app, you'd need any of the following, because the shadows are drawn by window manager, and oxygen shadows are only supported by oxygen-enabled WM:

1. kwin with KDE oxygen theme (KDE window manager)
2. patched (as per [1]) XFWM4 (XFCE window manager) with oxygen theme from [1]
3. oxygen-gtk-deco, obtainable from building oxygen-gtk2 from source, passing -DBUILD_DECO_TEST=1 to cmake to build a test app for window decoration rendering, then starting oxygen-gtk-deco and trying to resize the solid window (the one without hole) to get inactive shadow.

I didn't test though since I don't have latest intel driver.

[1]: http://xfce-look.org/content/show.php/XFWM+KDE4.8+Oxygen+theme?content=123744
Comment 6 Martin Peres 2019-11-27 13:33:18 UTC
-- 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/xorg/driver/xf86-video-intel/issues/27.

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.