Bug 17574 - [9M965] Damaged windows fail to redraw, or redraw with garbage (driver 2.4.1)
Summary: [9M965] Damaged windows fail to redraw, or redraw with garbage (driver 2.4.1)
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.4 (2008.09)
Hardware: Other All
: medium normal
Assignee: Carl Worth
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-14 13:03 UTC by jwbaker
Modified: 2009-01-22 20:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Screenshot showing xfce4-terminal filled with garbage (75.77 KB, image/png)
2008-09-14 13:03 UTC, jwbaker
no flags Details
Xorg.log (65.50 KB, text/plain)
2008-09-14 13:03 UTC, jwbaker
no flags Details
xorg.conf (1.44 KB, text/plain)
2008-09-14 13:04 UTC, jwbaker
no flags Details
Xorg.0.log with driver 2.5.0 (20.78 KB, text/x-log)
2008-11-10 20:55 UTC, jwbaker
no flags Details
Screenshot of damaged areas with 2.5.0 driver (144.88 KB, image/png)
2008-11-10 20:56 UTC, jwbaker
no flags Details

Description jwbaker 2008-09-14 13:03:03 UTC
Created attachment 18864 [details]
Screenshot showing xfce4-terminal filled with garbage

On a Lenovo ThinkPad X61 with Intel GM965, Xorg 7.4, Intel driver 2.4.1, I am seeing artifacts where windows fail to redraw, or damaged regions are filled with garbage.  I am using EXA.  The screenshot shows the problem quite clearly.  It is easy to reproduce.  All I have to do is use my laptop for a little while, raising and lowering windows, and switching with alt-tab, etc.  

By the way, I am using an ordinary 2D window manager, not Compiz, and I have no other 3D applications running.  Just Firefox and terminals.
Comment 1 jwbaker 2008-09-14 13:03:48 UTC
Created attachment 18865 [details]
Xorg.log
Comment 2 jwbaker 2008-09-14 13:04:42 UTC
Created attachment 18866 [details]
xorg.conf
Comment 3 Carl Worth 2008-11-06 15:01:06 UTC
Thank you for the bug report.

Coul you try the latest 2.5.0 release of the driver to see if the problem goes away:

http://intellinuxgraphics.org/download.html

Thanks,

-Carl
Comment 4 jwbaker 2008-11-06 15:21:02 UTC
Sure, I'll be happy to, but being slightly averse to building it right now I'd be grateful if you could point me to a distro or livecd that already packs the 2.5 driver.
Comment 5 Carl Worth 2008-11-07 11:56:08 UTC
(In reply to comment #4)
> Sure, I'll be happy to, but being slightly averse to building it right now I'd
> be grateful if you could point me to a distro or livecd that already packs the
> 2.5 driver.

I'm not aware of one, but that doesn't mean that one exists, (I haven't followed any recent distribution snapshots or live CDs, etc.).

I can understand your hesitance to entirely break a working system, but it can actually be fairly simple to compile this driver and use it without installing anything. Here's the basic recipe I use:

1. Download and untar the driver

2. Change into the new source directory and:

    ./configure && make

3. Make a local copy of your X configuration file:

    cp /etc/X11/xorg.conf .

4. Edit that file and add a section like the following at the top:

      Section "Files"
        ModulePath      "/home/username/src/xf86-video-intel/src/.libs"
        ModulePath      "/usr/lib/xorg/modules"
      EndSection

   Edit the /home/username/src/ portion to match the actual directory where you untarred the driver source. This will direct the X server to look in the directory where the driver is compiled, (but never installed).

5. Finally, start an X server, pointing it at your custom config file. Something like:

   X -config /home/username/src/xf6-video-/intel/xorg.conf :0 & sleep 1 && DISPLAY=:0 xterm

   This starts an X server, waits one second, then starts an xterm. You can modify the command to start whatever else you like. Or from within that xterm you can then run something like "gnome-session" or "startkde" or similar to get a complete session.

Do let me know if you have any trouble with that---otherwise I'll look forward to whatever report you can provide.

-Carl
Comment 6 jwbaker 2008-11-10 20:55:18 UTC
Created attachment 20204 [details]
Xorg.0.log with driver 2.5.0

You left out the part about building a private libdrm and setting DRM_LIBS and DRM_CFLAGS :-)

Anyway, I was able to reproduce the problem still with 2.5.0.  Scrambled contents of damaged windows is still the symptom.

I would note that I can't make this happen with Compiz, only with Metacity.  Perhaps there is a non-compositing, non-render drawing path that's being overlooked if the developers and testers are mainly using Compiz?
Comment 7 jwbaker 2008-11-10 20:56:04 UTC
Created attachment 20205 [details]
Screenshot of damaged areas with 2.5.0 driver

Screenshot of the 2.5.0 behavior.  Similar to the previous shot.
Comment 8 jwbaker 2009-01-22 20:09:12 UTC
With the latest released bits I can no longer reproduce this.


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.