Bug 49887 - [sna] weird blue background underneath menus
Summary: [sna] weird blue background underneath menus
Status: CLOSED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 15:18 UTC by Jiri Slaby
Modified: 2012-05-15 07:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
video demonstrating the issue (155.84 KB, video/mp4)
2012-05-13 15:18 UTC, Jiri Slaby
no flags Details
Xorg.log (29.77 KB, text/plain)
2012-05-13 15:18 UTC, Jiri Slaby
no flags Details

Description Jiri Slaby 2012-05-13 15:18:01 UTC
Created attachment 61589 [details]
video demonstrating the issue

When switching menus, some blue background shows up for a moment like in the attached video.

This is with SNA 2.19.0-45-gb0dfd82
Comment 1 Jiri Slaby 2012-05-13 15:18:31 UTC
Created attachment 61590 [details]
Xorg.log
Comment 2 Chris Wilson 2012-05-13 15:28:39 UTC
Looks like an animated cross-fade. The menus are visible in the intermediate frames with varying levels of opacity, one decreasing, one increasing. Looks intentional... Has anything else changed on your system?
Comment 3 Jiri Slaby 2012-05-14 00:01:09 UTC
(In reply to comment #2)
> Looks like an animated cross-fade. The menus are visible in the intermediate
> frames with varying levels of opacity, one decreasing, one increasing. Looks
> intentional... Has anything else changed on your system?

Not really. I forgot to add that I don't see the blue color with UXA 2.18 at all. This also did not happen with earlier SNA, dunno exactly which version exactly (as I used snapshots). I'm pretty sure that 2.19 SNA already did not work.
Comment 4 Chris Wilson 2012-05-14 02:18:30 UTC
Ok, what is the theme? GTK or KDE? Composited WM?
Comment 5 Jiri Slaby 2012-05-14 03:35:05 UTC
This is menu in thunderbird in KDE 4.8.3. So I believe GTK widgets in KDE. Composition/effects are turned on.

I don't see it with Qt apps. I.e. with Qt widgets. Like menus in qtconfig do not expose this.
Comment 6 Chris Wilson 2012-05-14 04:37:48 UTC
Do you know which theme you are using for GTK+? Also are you using XRender effects or OpenGL? (If OpenGL, you don't happen to know a way to force KDE to keep using effects?)
Comment 7 Chris Wilson 2012-05-14 05:05:04 UTC
Ok, XRender desktop effects appear to be the key.
Comment 8 Chris Wilson 2012-05-14 06:08:08 UTC
commit 3c9759ef2ad755bbe720d4aa031ec67dbc3b7734
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon May 14 14:12:06 2012 +0100

    sna/gen3: Fix pre-multiplication of opacity masks
    
    The return type for the multipliation was only 8-bits wide dating back
    to the time when the function just computed a single channel and didn't
    try to blend the output back into the argb pixel value. Inlining the
    shift into the function means that we need the output to be 32-bits wide
    instead.
    
    Reported-by: Jiri Slaby <jirislaby@gmail.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49887
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 9 Jiri Slaby 2012-05-15 07:55:41 UTC
(In reply to comment #8)
> commit 3c9759ef2ad755bbe720d4aa031ec67dbc3b7734
> Author: Chris Wilson <chris@chris-wilson.co.uk>
> Date:   Mon May 14 14:12:06 2012 +0100
> 
>     sna/gen3: Fix pre-multiplication of opacity masks

Yep, confirmed. Thanks.


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.