Bug 10485 - Hardware accelerated compositing is slow
Summary: Hardware accelerated compositing is slow
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-31 07:16 UTC by Khashayar Naderehvandi
Modified: 2009-09-01 00:50 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg configuration file (3.30 KB, text/plain)
2007-03-31 07:17 UTC, Khashayar Naderehvandi
no flags Details
Xorg log file (58.90 KB, text/plain)
2007-03-31 07:17 UTC, Khashayar Naderehvandi
no flags Details

Description Khashayar Naderehvandi 2007-03-31 07:16:15 UTC
Basically, using compiz gives the feeling that some stuff is being rendered in software mode. Scrolling text, etc., consumes 100% cpu power and is very laggy. These are the modules I'm using.

xserver 1.2.99.903
drm kernel modules from git
linux-agp-compat from git
xf86-video-intel from git
libdrm from git
mesa from git
intel dri drivers from git

Using the same list of modules, but replacing xf86-video-intel with version 1.7.4 of xf86-video-i810 gets rid of the problem. 

I'm not sure if this in fact is a compiz bug or not, but I wouldn't think so.

I'll attach xorg.conf and log file. The device in question is intel 855GM.

Thanks for your code!
Comment 1 Khashayar Naderehvandi 2007-03-31 07:17:09 UTC
Created attachment 9394 [details]
Xorg configuration file
Comment 2 Khashayar Naderehvandi 2007-03-31 07:17:32 UTC
Created attachment 9395 [details]
Xorg log file
Comment 3 Khashayar Naderehvandi 2007-03-31 07:26:58 UTC
I also filed this related bug 10486...
Comment 4 Michel Dänzer 2007-03-31 08:24:28 UTC
(In reply to comment #0)
> Using the same list of modules, but replacing xf86-video-intel with version
> 1.7.4 of xf86-video-i810 gets rid of the problem. 

If using XAA (possibly with Option "XAANoOffscreenPixmaps") instead of EXA doesn't help, please attach a log file from 1.7.4.
Comment 5 Khashayar Naderehvandi 2007-03-31 08:39:39 UTC
(In reply to comment #4)
> (In reply to comment #0)
> > Using the same list of modules, but replacing xf86-video-intel with version
> > 1.7.4 of xf86-video-i810 gets rid of the problem. 
> 
> If using XAA (possibly with Option "XAANoOffscreenPixmaps") instead of EXA
> doesn't help, please attach a log file from 1.7.4.
> 

XAA with Option "XAANoOffscreenPixmaps" does indeed work. I was of the impression that compositing should be faster with EXA. Except for this glitch, EXA on intel seems very stable otherwise...
Comment 6 Michel Dänzer 2007-03-31 09:06:27 UTC
(In reply to comment #5)
> XAA with Option "XAANoOffscreenPixmaps" does indeed work. I was of the
> impression that compositing should be faster with EXA.

It should indeed; the thing is, the way GLX_EXT_texture_from_pixmap is currently implemented with AIGLX, it actually tends to be faster with 2D acceleration disabled, which is what the XAA option achieves. If the patches I put up on http://people.freedesktop.org/~daenzer/aiglx-zero-copy-tfp/ were ported to the i915(tex) 3D driver, that should be much faster with EXA.
Comment 7 Khashayar Naderehvandi 2007-03-31 09:49:20 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > XAA with Option "XAANoOffscreenPixmaps" does indeed work. I was of the
> > impression that compositing should be faster with EXA.
> 
> It should indeed; the thing is, the way GLX_EXT_texture_from_pixmap is
> currently implemented with AIGLX, it actually tends to be faster with 2D
> acceleration disabled, which is what the XAA option achieves. If the patches I
> put up on http://people.freedesktop.org/~daenzer/aiglx-zero-copy-tfp/ were
> ported to the i915(tex) 3D driver, that should be much faster with EXA.
> 

Are there any plans to port them? Sometimes I really wish I could code...
Anyway, I noticed - after opening several windows - that compiz still was a bit slower than with the older driver. Not unusably so, just slightly annoyingly...
Comment 8 Khashayar Naderehvandi 2007-04-20 09:49:41 UTC
I'm trying out xserver 1.3 + xf86-video-intel 2.0 now (contra my first post, all other packages are latest released, i.e. no git-version of anything), and compositing with compiz is too slow for everyday use now... I've tried both XAA + XAANoOffscreenPixmaps, as well as EXA. 

Is there any work around for this?
Comment 9 Michel Dänzer 2007-05-25 08:37:02 UTC
(In reply to comment #6)
> If the patches I put up on
> http://people.freedesktop.org/~daenzer/aiglx-zero-copy-tfp/ were
> ported to the i915(tex) 3D driver, that should be much faster with EXA.

Ported to i915tex and pushed to the master branches.
Comment 10 Danny 2008-02-07 18:05:18 UTC
Hi !

I have the same trouble with xf86-video-2.2.1 on Archlinux and Compiz-Fusion.

With the package 2.1.1, no problem, fluid and not CPU intensive.

P200 Toshiba Laptop with 945GM.

If you can help...

Thanks 1
Comment 11 Michel Dänzer 2009-09-01 00:50:29 UTC
If this is still an issue with current versions of the intel drivers, please reassign to Driver/intel and select 'Reassign bug to default assignee and QA contact, and add Default CC of selected component'.


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.