dri megadriver_stub: add compatibility for older DRI loaders

Graphics / Mesa 3D Graphics Library / Mesa - Jordan Justen [intel.com] - 9 December 2013 18:33 UTC

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.

4859d49 dri megadriver_stub: add compatibility for older DRI loaders
src/mesa/drivers/dri/common/megadriver_stub.c | 126 +++++++++++++++++++++++++
1 file changed, 126 insertions(+)

Upstream: cgit.freedesktop.org


  • Share