Reg: AIGLX architecture & it's difference from DRI

Dave Airlie airlied at
Mon Sep 1 02:03:52 PDT 2008

On Mon, Sep 1, 2008 at 6:40 PM, Rahaman < at> wrote:
> Hi Dave,
> Thanks for the response.
> I do not want to write a which will work either with DRI or with
> AIGLX.Let's put my questions one by one below..
> 1>If some one( a vendor) gives me only the OpenGL driver(no DRI/DRM
> functionality) implementation, can i use that and build my DRI/DRM modules
> i.e. Can i write my own & and still use the vendor provided
> OpenGL? Excuse me as some of my questions can be abstarct or some cases
> invalid,too as i am new to this area :-(

an OpenGL driver for Linux, is a kernel module + 3D client driver + 2D
driver support changes.
If someone is providing you an OpenGL driver then you need all the
bits. This doesn't necessarily mean a DRI driver,
nvidia for example provide GL drivers not using the DRI architecture
at all. If you are getting a GL driver for DRI architecture,
then you need all the bits.

> 2>In case of AIGLX, where can i find the code inside xserver where it
> redirects the libGL calls to the

Not sure why it matters, but its in glx directory or GL/ in older servers.

> 3>Can i get a comparison like pros & cons for both the architecture in
> different context/use cases?

They aren't different architectures. has the DRI architecture,
AIGLX is just part of that. AIGLX will be slower, as things like
textures need to be sent to the X server. AIGLX may not be able to
expose all the GL extensions due to missing GLX protocol for some.
AIGLX means the clients don't need access to the kernel directly.
Thats about all I can think off.

> Regs,
> Rahaman
> -----Original Message-----
> From: Dave Airlie <airlied at>
> To: Mustafizur Rahaman < at>
> Cc: xorg at
> Subject: Re: Reg: AIGLX architecture & it's difference from DRI
> Date: Mon, 1 Sep 2008 18:26:15 +1000
> On Mon, Sep 1, 2008 at 6:08 PM, Mustafizur Rahaman
> < at> wrote:
>> Hi,
>> Can any one please tell me whether there is any document available which
>> explains me the AIGLX architecture briefly.What i am looking is if some
>> one
>> provides me only a OpenGL driver whether it is easier to build AIGLX on
>> top
>> of it or making DRI/DRM kind of framework is easier, provided that i have
>> a
>> X window system running below.
>> I am also looking for the difference between the DRI & AIGLX
>> architecture.E.g, i know that the xserver loads the <hw> when AIGLX
>> is enabled and the client app links to the <hw>, when DRI is
>> enabled.Is there other differences as well?
> No really, AIGLX is part of the DRI architecture.
> You have direct rendering and indirect rendering, in the direct
> rendering case libGL calls directly into
> GL driver, which then calls into the kernel, in the indirect
> rendering case libGL calls get send to GLX in the X server,
> which sends them to the driver which then calls into kernel.
> You can't really write an that only works in AIGLX or DRI,
> well you could but it would be pointless.
> Dave.
>> Regs,
>> M R.
>> _______________________________________________
>> xorg mailing list
>> xorg at

More information about the xorg mailing list