Bug 47308 - [945GM SNA] Rendering issue with xfdesktop related to XVideo
Summary: [945GM SNA] Rendering issue with xfdesktop related to XVideo
Status: RESOLVED 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-03-14 08:01 UTC by Paul Neumann
Modified: 2012-04-03 04:33 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
screenshot of the bug (546.87 KB, image/png)
2012-03-14 08:01 UTC, Paul Neumann
no flags Details
Part 1 of the log (2.00 MB, application/octet-stream)
2012-03-14 13:22 UTC, Paul Neumann
no flags Details
Part 2 of the log (2.00 MB, application/octet-stream)
2012-03-14 13:22 UTC, Paul Neumann
no flags Details
Part 3 of the log (1.10 MB, application/octet-stream)
2012-03-14 13:23 UTC, Paul Neumann
no flags Details

Description Paul Neumann 2012-03-14 08:01:38 UTC
Created attachment 58437 [details]
screenshot of the bug

Watching videos in vlc using XVideo and at the same time selecting an area on the XFCE desktop produces a misrendering as seen in the screenshot. Part of the frame of the video is then partly drawn in the selected area.

This does happen with xf86-video-intel from git with SNA. Without compositing enabled, the issue does not show.
Comment 1 Chris Wilson 2012-03-14 11:51:23 UTC
Doesn't happen to me... Care to do the usual sanity check with --enable-debug first and attach your Xorg.log?
Comment 2 Paul Neumann 2012-03-14 13:22:00 UTC
Created attachment 58444 [details]
Part 1 of the log
Comment 3 Paul Neumann 2012-03-14 13:22:44 UTC
Created attachment 58445 [details]
Part 2 of the log
Comment 4 Paul Neumann 2012-03-14 13:23:21 UTC
Created attachment 58446 [details]
Part 3 of the log
Comment 5 Chris Wilson 2012-03-24 03:06:53 UTC
I haven't had much luck in reproducing this. I saw it briefly from resizing a terminal window whilst playing video, but even that seems to have become more difficult to reproduce with other bug fixes.

Paul, are you still finding this easy to trigger?
Comment 6 Chris Wilson 2012-03-24 03:08:28 UTC
Actually,

commit 86121a3af9a9fc9a2c76d7ac9f3ec17105d20d80
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Mar 22 11:21:43 2012 +0000

    sna: Adjust the damage region for the composite offset
    
    References: https://bugs.freedesktop.org/show_bug.cgi?id=47597
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

would seem to be a likely candidate...
Comment 7 Paul Neumann 2012-03-24 03:24:03 UTC
It isn't fixed. I can reproduce it just as easy as before. What I noticed is that when I turn on compositing in xfwm, sometimes (1 out of 5-10 times) the whole desktop gets drawn a frame of the video because of the switch.

Besides, I switched to the non-compositing i3 window manager so the issue does not hit me anymore.
Comment 8 Chris Wilson 2012-03-24 03:39:43 UTC
As always, keep me posted, thanks. Hopefully I'll find something for you to test again.
Comment 9 Chris Wilson 2012-04-03 04:33:06 UTC
commit 04851e4210d2d71542359c14d4b68d0851b36326
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Apr 3 12:34:24 2012 +0100

    sna/gen3: Convert the clear-color from picture->format to a8r8g8b8
    
    The shaders treat colours as an argb value, however the clear color is
    stored in the pixmap's native format (a8, r5g6b5, x8r8g8b8 etc). So
    before using the value of the clear color as a solid we need to convert
    it into the a8r8g8b8 format.
    
    Reported-by: Clemens Eisserer <linuxhippy@gmail.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=48204
    Reported-by: Paul Neumann <paul104x@yahoo.de>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47308
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>


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.