Mesa, DRI framework questions..

Chuck Robey chuckr at telenix.org
Thu Jun 19 11:57:28 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mohan Parthasarathy wrote:
> Hi,
> 
> I spent some digging through the code but could not find answer to some
> of the questions.
> Hope someone can help out.
> 
> 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 ?
> 
> 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 ?
> 
> 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 ?
> 
> 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.
> 
> 5) 2D Driver calls DRIQueryVersion. Where is this defined ?
> 
> Any help would be appreciated. If i am not reading some document, please
> let me know.
> Is the document under hw/xfree86/doc/README.DRI reflect the current
> state of things.
> It is dated June 2001.
>

TCSH-april:root:~chuckr/xorgsrc/mesa:#236-14:55>grep -r XF86DRIQueryExtension *
Binary file lib/libGL.so.1 matches
Binary file lib/libGL.so matches
src/glx/x11/XF86dri.c:PUBLIC Bool XF86DRIQueryExtension (dpy, event_basep,
error_basep)
src/glx/x11/dri_glx.c:    if (!XF86DRIQueryExtension(dpy, &eventBase, &errorBase)) {
src/glx/x11/xf86dri.h:Bool XF86DRIQueryExtension( Display *dpy, int *event_base,
int *error_base );
Binary file src/glx/x11/dri_glx.o matches
Binary file src/glx/x11/XF86dri.o matches

I found I needed to use git to download drm (to get the latest) and build it
before I built mesa.

> Thanks
> mohan
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIWqwYz62J6PPcoOkRAtAqAJ9v6rFeEocBbTT8M0WSTH0r5+l1OwCgjMTO
X+LS9by+1JfFF88/vHvsvhY=
=0XMd
-----END PGP SIGNATURE-----



More information about the xorg mailing list