Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jan 2007 17:09:45 +0300
From:      "Marat N.Afanasyev" <amarat@ksu.ru>
To:        Isaac Waldron <isaac.waldron@gmail.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: 6.2-PRE, AGP X800, and Modular Xorg == No DRI?
Message-ID:  <459D0AA9.10004@ksu.ru>
In-Reply-To: <9c16502b0612170830i429441f7j78b955ffa1a50de4@mail.gmail.com>
References:  <9c16502b0612131708r365b8ccew72e936bc67dada60@mail.gmail.com>	<4581AA17.3080501@gaspode.franken.de> <4581B846.50200@voicenet.com>	<9c16502b0612141458o75c27495k4b72bd1f56b21f55@mail.gmail.com>	<9c16502b0612160910g5eba0982sbc4c52306e0d1b89@mail.gmail.com>	<45853109.5040208@alqualonde.org> <9c16502b0612170830i429441f7j78b955ffa1a50de4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Isaac Waldron wrote:
>> Isaac Waldron wrote:
>> > Upon further debugging, it appears that RADEONDRIGetVersion is failing
>> > due to symbol "drmAvailable" not being found.  This was silently
>> > failing, so I added a call to xf86DrvMsg to make it speak up.
>> >
>> > Now, drmAvailable appears to be part of the libdrm port, of which I
>> > have version 2.3.0 installed.  Apparently, Xorg is not loading
>> > libdrm.so for some reason?  libdrm.so is located in /usr/local/lib, is
>> > there something special I need to do to get Xorg to pull this in?
>> >
>> > Isaac
>> >
>>
>> I have similar problem.
>> I find that after X server dlopen(3) the extension libdri.so with
>> option RTLD_GLOBAL, the symbols in libdrm.so which it depends on
>> cannot be accessed using dlsym(3), neither via the reference to
>> libdri.so, nor the reference to the global scope.
>>
>> I have this little patch to make it work, but it seems not a best
>> way to do so.
>>
>> - --- hw/xfree86/loader/dlloader.c.orig   Sun Dec 10 20:07:20 2006
>> +++ hw/xfree86/loader/dlloader.c        Sun Dec 10 20:07:38 2006
>> @@ -120,7 +120,7 @@
>>      }
>>
>>      if (!global_scope)
>> - -       global_scope = dlopen(NULL, DLOPEN_LAZY | DLOPEN_GLOBAL);
>> +       global_scope = RTLD_DEFAULT;
>>
>>      if (global_scope)
>>         return dlsym(global_scope, name);
>>
>>
>> Regards,
>> yongjhen

this patch seems to hang my x700 again :( but< if I set 
LD_PRELOAD=/usr/local/lib/libdrm.so before starting xorg, direct 
rendering works at least for 'root'. Any other user cannot use DRI at all.

-- 
SY, Marat



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?459D0AA9.10004>