Name MESA_query_driver Name Strings EGL_MESA_query_driver Contact Rob Clark Nicolai Hähnle Contibutors Veluri Mithun Status Complete Version Version 3, 2019-01-24 Number EGL Extension 131 Dependencies EGL 1.0 is required. Overview When an application has to query the name of a driver and for obtaining driver's option list (UTF-8 encoded XML) of a driver the below functions are useful. XML file formally describes all available options and also includes verbal descriptions in multiple languages. Its main purpose is to be automatically processed by configuration GUIs. The XML shall respect the following DTD: New Procedures and Functions char* eglGetDisplayDriverConfig(EGLDisplay dpy); const char* eglGetDisplayDriverName(EGLDisplay dpy); Description By passing EGLDisplay as parameter to `eglGetDisplayDriverName` one can retrieve driverName. Similarly passing EGLDisplay to `eglGetDisplayDriverConfig` we can retrieve driverConfig options of the driver in XML format. The string returned by `eglGetDisplayDriverConfig` is heap-allocated and caller is responsible for freeing it. EGL_BAD_DISPLAY is generated if `disp` is not an EGL display connection. EGL_NOT_INITIALIZED is generated if `disp` has not been initialized. If the implementation does not have enough resources to allocate the XML then an EGL_BAD_ALLOC error is generated. New Tokens No new tokens Issues None Revision History Version 1, 2018-11-05 - First draft (Veluri Mithun) Version 2, 2019-01-23 - Final version (Veluri Mithun) Version 3, 2019-01-24 - Mark as complete, add Khronos extension number, fix parameter name in prototypes, write revision history (Eric Engestrom)