[Mesa-stable] [PATCH v3] dri megadriver_stub: add compatibility for older DRI loaders

Keith Packard keithp at keithp.com
Mon Dec 9 16:23:27 PST 2013


Jordan Justen <jordan.l.justen at intel.com> writes:

> To help the transition period when DRI loaders are being updated
> to support the newer __driDriverExtensions_foo mechanism,
> we populate __driDriverExtensions with the extensions returned
> by __driDriverExtensions_foo during a library contructor
> function.
>
> We find the driver foo's name by using the dladdr function
> which gives the path of the dynamic library's name that
> was being loaded.
>
> v2:
>  * dladdr on public symbol __driDriverExtensions rather
>    than static megadriver_stub_init.
>  * Incorporate fixes and suggestions from Keith

Reviewed-by: Keith Packard <keithp at keithp.com>

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-stable/attachments/20131209/a27d9914/attachment.pgp>


More information about the mesa-stable mailing list