Bug 8160

Summary: Autodetect x-acceleration (xgl, aiglx) in compiz
Product: xorg Reporter: Hanno Böck <hanno>
Component: App/compizAssignee: David Reveman <reveman>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: high CC: colin, dpfj, krh, kristian, michel, mlists
Version: git   
Hardware: Other   
OS: Linux (All)   
i915 platform: i915 features:
Description Flags
Detect aiglx if tfp-extension not in GLX extensions none

Description Hanno Böck 2006-09-06 14:22:02 UTC
compiz needs --strict-binding and --indirect-rendering option for running in 
aiglx. Preferrably it should autodetect which kind of x is running and set 
options accordingly.

I once wrote a patch for that (attached), but both krh and davidr weren't happy 
with the kind it works (detect if tfp-extension is in GLX extensions) and it 
seems not to work sometimes.

Probably introduce some variable that can be read by compiz?
Comment 1 Hanno Böck 2006-09-06 14:22:53 UTC
Created attachment 6850 [details] [review]
Detect aiglx if tfp-extension not in GLX extensions
Comment 2 Kristian Høgsberg 2006-09-06 17:26:23 UTC
Also, for AIGLX, compiz should use COW.  I'm sitting on the patch to add COW support as an option, 
will commit that shortly.
Comment 4 Kristian Høgsberg 2007-01-18 09:51:54 UTC
Compiz should be able to do the right thing, but a bug in libGL prevents this
from working right.  It already uses COW by default and since at least 0.3.6,
compiz falls back to indirect rendering if tfp is not available in direct mode.
 AIGLX should advertise tfp in indirect mode, but this currently only works if
libGL is forced into indirect mode by setting LIBGL_ALWAYS_INDIRECT.  If this
inconsitency is fixed (Hanno tracked this down, but I don't remember if he had a
patch for it), compiz should just work out of the box on either Xgl or AIGLX.
Comment 5 Daniel Stone 2007-02-27 01:33:27 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 6 Michel Dänzer 2007-06-22 03:51:46 UTC
*** Bug 11328 has been marked as a duplicate of this bug. ***
Comment 7 Kristian Lyngstøl 2009-02-03 12:13:07 UTC
This has been dealt with a few times since this bug was dealt with. If this is still considered an issue, feel free to re-open on bugs.opencompositing.org.

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.