Bookmark and Share BitCoin Donate: 13t8gAWVpHP2ddxMp88d1NFpZjnFJC6UwK

Introduction

Accelerated Indirect GLX ("AIGLX") is an open source project founded by Red Hat and the Fedora Linux community to allow accelerated indirect Open-GL rendering capabilities to X.org and DRI drivers. This allows the xorg-server to get fully hardware accelerated rendering over the GLX protocol; this is required for OpenGL compositing window managers (such as Compiz or Beryl) to function with hardware acceleration.

The end result is that you can use GL effects on your desktop with very few changes (a slightly modified xorg.conf), the ability to turn it on and off at will, and you don't have to replace your X server in the process. AIGLX is included in xorg-server 7.1 and later.
Prerequisites

See Compatibility for a full compatibility list.
Cards Supported

* ATI: Radeon r100, r200 generations (7000, 8000 models - driver radeon)
* ATI: Radeon r300 and greater (>=9500) through r300_dri driver or ati-drivers >= 8.42.3
* ATI Radeon Xpress 200M. - Works fine with ati-drivers (8.443.1-r1) package
* Intel: All Intel graphics i810 and newer
Note: Doesn't work for me with i945GM aka GMA950, Beryl runs but composite is broken for OpenGL windows, OpenGL windows (e.g. glxgears) render on top of windows even when covered by other windows. Email me at jdmulloy (a) gmail (d) com if you have this card and it does or does not work.
Bug Report
* nVidia - AIGLX/XGL features are supported from within the driver package. Also see HOWTO nVidia GL Desktop Effects for more information.

Cards partially supported

* Via: Depending on your chipset AIGLX may work, but the driver is missing some features, so the compiz-stuff won't work

Cards In Testing

* Savage: Any. - Works with slowdown, however, 3-d window managers (beryl, compiz)cannot be started.

Cards Not Supported

* ATI: Rage 128. - Driver locking issue.
* ATI: Mach64. - No DRM support in Fedora, still insecure.
* ATI: Any ATi card with closed source driver <8.42.3. - Uses incompatible DRI API.
* Matrox: MGA G200 to G550. - DRI locking (http://matrox.tuxx-home.at fixes this). PCI cards probably have other issues as well.
* Matrox: Millenium P650/P750 (undeclared 'GL_TEXTURE_RECTANGLE_NV' and 'GL_TEXTURE_RECTANGLE_ARB' in libGL.so)
* 3dfx: Voodoo 1 and 2. - No DRI driver.
* SiS: 661/741/760 PCI/AGP or 662/761Gx PCIE

Installing AIGLX

As already noted, >=xorg-x11-7.1 (specifically xorg-server-1.2.0-r3) includes AIGLX and builds it by default. Don't look for a corresponding USE flag in recent Xorg versions, as there is none.
Previous xorg-servers
Note: According to the ebuilds only version 1.2.99.0 (which is hardmasked) needs the aiglx use flag. Other versions simply dont support this flag.
Upgrading to XOrg 7.1 From 6.9 or lower

Please see Howto Modular Xorg.
Upgrading for Stable Arch

Simply update your installation:

emerge --sync
emerge --update --newuse world

Setting up xorg.conf

Before we do this let's make sure direct rendering is running and AIGLX is enabled:

glxinfo | grep direct
grep -i aiglx /var/log/Xorg.0.log

You will need some additions in xorg.conf.

If aiglx is available but it is disabled then add the following to your "ServerLayout" section.
File: /etc/X11/xorg.conf

Option "AIGLX" "true"

In "Extensions" make sure compositing is enabled ( note: ATI Catalyst 7.12/8.44.3-1, you probably don't want to do this, or it'll scramblize your colors, but it seems to be implicitly-enabled anyways, so don't worry about it � grep your Xorg.0.log! ).

Section "Extensions"
Option "Composite" "Enable"
EndSection

In "Module", make sure GLcore is disabled and you might want to disable vbe as it's been known to slowdown Compiz, and be sure dbe is enabled:

# Load "GLcore"
# Load "vbe"
Load "dbe"

In "Device" you need DRI and this other thing:

Option "DRI" "true"
Option "XAANoOffscreenPixmaps" "true"

In Section "DRI"

Mode 0666

nVidia users will need this in the "Screen" section:

Option "AddARGBGLXVisuals" "true"

nvidia drivers automatically use AllowGLXWithComposite "true" if the xorg server version is 6.9 or greater, this is no longer needed

Installing a Compositing Window Manager

AIGLX does absolutely nothing without a proper GL window manager to use its features such as Compiz Fusion, or Metacity version 2.18 (for Gnome). Please see those pages for more information.