Bug 49887

Summary: [sna] weird blue background underneath menus
Product: xorg Reporter: Jiri Slaby <jirislaby>
Component: Driver/intelAssignee: Chris Wilson <chris>
Status: CLOSED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
video demonstrating the issue
none
Xorg.log none

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.