GLX: implement __GLX_VENDOR_LIBRARY_FILENAMES similar to __EGL_VENDOR_LIBRARY_FILENAMES#229
GLX: implement __GLX_VENDOR_LIBRARY_FILENAMES similar to __EGL_VENDOR_LIBRARY_FILENAMES#229funch0za wants to merge 1 commit intoNVIDIA:masterfrom
Conversation
…_FILENAMES. The functionality is similar to using the __EGL_VENDOR_LIBRARY_FILENAMES variable: gets a json file with a list of drivers for GLX.
|
What problem is this meant to solve? EGL has to use the JSON files because it has to work with multiple different window systems, and because EGLDeviceEXT handling by definition requires loading every driver to get their respective device lists. GLX has no such requirement. With GLX, there is exactly one window system, and that window system provides a way to get a driver name. There is also already an environment variable to override that name when necessary. That driver name, in turn, translates directly to the name of the DSO to load. |
|
This does not solve some problems. This patch adds the ability to isolate the vendor for GLX. |
|
Isolate it from what? |
|
@funch0za - In what situation would someone want to use this feature? |
|
This can solve the problem for Linux distributions where each vendor for GLX and EGL is isolated in a separate directory. In such a case, the JSON file can specify the direct path to the vendor’s directory. |
Added support for the
__GLX_VENDOR_LIBRARY_FILENAMESenvironment variable, similar to__EGL_VENDOR_LIBRARY_FILENAMES. This enables loading GLX drivers from a JSON file.Close #228