From: Eric A. <et...@lc...> - 2004-10-20 08:01:19
|
On Wed, 2004-10-20 at 00:33, Keith Whitwell wrote: > Adam Jackson wrote: > > Currently in order to build a libGL.so that acts as a GLX client, you need to > > build it in the X tree. Current DRI drivers will not work with a libGL from > > a too-old X, but the linux-dri target does not build a libGL. Users and > > distributors would like to be able to update their client-side libs without > > rebuilding all of X. > > > > The attached patch modifies the build configs to build the appropriate glx > > subdirectory depending on whether an X-based or solo-based build is > > requested. You will also need the following overlay package: > > > > http://freedesktop.org/~ajax/glx-overlay.tar.gz > > > > Unpack that from within your Mesa dir, apply this patch, and 'make linux-dri'. > > You should get a libGL.so.1.2 in lib/. > > > > The overlay imports lib/GL/glx from the X tree into src/glx/x11, and > > programs/Xserver/GL/dri/sarea.h into include/GL/internal. Besides build > > config changes nothing in the Mesa code was changed. The build system > > changes are all of 5 lines, so this shouldn't be too controversial. > > > > Please test. I suspect the linux-dri-x86 target doesn't work yet, and > > probably sparc doesn't either. The linux-dri target was tested with the > > usual suspects (glxgears, quake3) and seems solid. > > There has been some discussion about this in the past, but I'm generally in > favor of Mesa being able to build the full set of client libraries and would > like to see something like this in the Mesa tree. I know I would love to see it, and given the push towards splitting up X.Org, this would fit in excellently with those plans. -- Eric Anholt et...@lc... http://people.freebsd.org/~anholt/ anholt@FreeBSD.org |