Mesa, DRI framework questions..

Michel Dänzer michel at tungstengraphics.com
Fri Jun 20 01:11:32 PDT 2008


On Thu, 2008-06-19 at 11:44 -0700, Mohan Parthasarathy wrote:
> 
> 1) Mesa/src/glx/x11 is the same as in X-server branch under GL/glx. I
> am assuming that
>  the code in X-server is what should be used. Right ?

Should be used for what? The former handles the client side aspects of
GLX while the latter handles the server side aspects.


> 2) Mesa/src/mesa is similar to X-server branch under GL/mesa. X-server
> just refers to the
>     code in Mesa. Don't we just need the software rendering code in
> X-server ?
>     Why is glapi included on the Xserver side ? Also, why are we
> making libX.la ?

This has been overhauled in the current Git master branches, now the X
server just loads swrast_dri.so built in the Mesa tree and no longer has
a build time dependency on Mesa source code.


> 3) Mesa/src/drivers/dri/<driver-name>/server/ What does the 3D driver
> supposed to
>     provide under server directory ? Is there a document describing
> this ?

It's only needed for mini-GLX. If you don't know what that is, you
probably don't need it. :)


> 4) xf86driproto/xf86dri.h : has several functions like
> XF86DRIQueryExtension etc. which
> sends X requests and are handled in hw/xfree86/dri/xf86dri.c, dri.c.
> What i can't
> find is where these functions (declared in xf86dri.h) are defined.

mesa/src/glx/x11/XF86dri.c, but again, current xf86driproto/xf86dri.h no
longer has these prototypes.


> 5) 2D Driver calls DRIQueryVersion. Where is this defined ?

xserver/hw/xfree86/dri/dri.c


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer




More information about the xorg mailing list