Bug 16123

Summary: kwin KDE 4.0.x artifacts
Product: Mesa Reporter: James Spencer <jamessp>
Component: Drivers/DRI/r300Assignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: jlp.bugs, tehfoo
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description James Spencer 2008-05-27 13:15:25 UTC
I'm on the campaign trail for my favorite 'bring the bling' bug :)

There's a long standing bug report with using kwin effects in KDE 4 and the radeon driver. The gist of it is that when windows change focus you get a line of corruption above and below the window.

This is best illustrated by:
https://bugs.kde.org/attachment.cgi?id=23455&action=view

The original KDE bug report, with more info and attachments is here:
https://bugs.kde.org/show_bug.cgi?id=155214

I originally posted a quick message to the xorg-driver-ati list ( http://lists.x.org/archives/xorg-driver-ati/2008-April/005120.html ) where ist was suggested: "Actually, as it only seems to happen with OpenGL, it's more likely a Mesa driver issue. Also, while I've seen this as well, there's no such problem with compiz. It would be interesting to know what kwin does differently." so I posted the same message to mesa3d-dev.

Since the KDE devs seem aware, I thought I'd open this bug here pointing to the KDE bug. Apologies if this is the wrong bugzilla.
Comment 1 Michel Dänzer 2008-05-28 00:13:54 UTC
Probably driver specific.

Again, it would be good to get some input from KDE developers as to what kwin does differently from compiz. It could be quite tedious to track this down for somebody unfamiliar with the kwin code.
Comment 2 Erik Boettcher 2008-05-28 00:34:46 UTC
I see the same thing here.  I also noticed something about those artifacts while using Xv -- the lines of windows on top are composed of elements of the video while the rest of the video's window is black.  I'm having trouble generating a screenshot of this right now, but as soon as I catch it I'll get it up.  (running kwin alone -- when running kde I should have no problem)
Comment 3 Michel Dänzer 2008-07-28 02:01:49 UTC
Fixed on the master and 7.0 branches.

commit 57aea290e1e0a26d1e74df6cff777eb9f038f1f8
Author: Michel Dänzer <michel@tungstengraphics.com>
Date:   Mon Jul 28 10:49:43 2008 +0200

    r300: Fix off-by-one error in calculation of scissor cliprect.

    Fixes http://bugs.freedesktop.org/show_bug.cgi?id=16123 .

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.