On Thu, 7 Oct 2004 02:10:37 +0100 (IST)
Dave Airlie <[EMAIL PROTECTED]> wrote:

> 
> I know someone asked a while back but I'm not sure anyone concluded what
> was happening...
> 
> Last night I decided to give the d3demo a go on my r9200 under DRI, my
> first attempt involved pointing LIBGL_DRIVERS_PATH to my S3TC enabled
> Mesa tree, this works for me for a number of games and seems fine,
> 
> however Doom 3 report indirect rendering when I do this, it looks like it
> is something to do with the way it dlopens, if I build the dri driver via
> my Xorg tree (i.e. just point extras/Mesa at my Mesa tree and rebuild the
> r200 driver), it works fine..
> 
> So whats the major difference between a dri driver built in mesa and in
> Xorg? (should I suspect PTHREADS?)

I get a similar problem with Quake Forge (0.5.2). With
LIBGL_DEBUG=verbose it says:

libGL: XF86DRIGetClientDriverName: 1.1.16 savage (screen 0)
libGL: OpenDriver: trying /home/felix/mesa/lib/savage_dri.so
libGL error: dlopen /home/felix/mesa/lib/savage_dri.so failed 
(/home/felix/mesa/lib/savage_dri.so: undefined symbol: __glXFindDRIScreen)
libGL error: unable to find driver: savage_dri.so

ldd `which nq-glx` doesn't list any libGL. Some grepping on the source
indicates that it loads libGL with dlopen("libGL.so.1", RTLD_NOW). I
tried changing this to RTLD_LAZY without any effect. I also made it load
"/usr/X11R6-XORG/lib/libGL.so.1" with an absolute path without any
effect. Last thing I tried after reading the dlopen manpage again was
RTLD_GLOBAL. That works. The problem is that without RTLD_GLOBAL
libGL.so can't export any symbols to the 3D driver. It seems with the
old DRI interface that was not needed. But the drivers build from Mesa
with NEW_INTERFACE_ONLY need access to at least one function exported by
libGL.

Maybe we could workaround the problem by calling

  dlopen (NULL, RTLD_GLOBAL)

in libGL somewhere. Not sure if this works. Or we would have to link the
3D drivers agains libGL. However, libGL may not be available when
building the 3D drivers from the mesa tree.


| Felix Kühling <[EMAIL PROTECTED]>                     http://fxk.de.vu |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3  B152 151C 5CC1 D888 E595 |


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to