[Mesa-dev] [PATCH] EGL/mesa: Initial write up fot MESA_query_driver

Veluri Mithun velurimithun38 at gmail.com
Sat Dec 15 17:27:28 UTC 2018


Hi Everyone,

we can obtain DRM device file from eglQueryDeviceStringEXT fun of
EGL_EXT_device_query extension. But, how to retrieve name, configs from
that?

Can we get the name of the matched driver for a particular display from any
of the EGLDriver->API ?? (EGL API dispatch table)

And looking at x11 implementation of getDrvierConfig, I finally reached
this file
https://gitlab.freedesktop.org/mesa/mesa/blob/master/include/GL/internal/dri_interface.h#L1828
and unable to find the implementation of that getXml function. Can we use
the same function here?

Please let me know what do you think about this.

Thanks,
Veluri.

On Sat, Dec 15, 2018 at 10:25 PM Veluri Mithun <velurimithun38 at gmail.com>
wrote:

> Signed-off-by: Veluri Mithun <velurimithun38 at gmail.com>
> ---
>  docs/specs/EGL_MESA_query_driver.txt | 54 ++++++++++++++++++++++++++++
>  1 file changed, 54 insertions(+)
>  create mode 100644 docs/specs/EGL_MESA_query_driver.txt
>
> diff --git a/docs/specs/EGL_MESA_query_driver.txt
> b/docs/specs/EGL_MESA_query_driver.txt
> new file mode 100644
> index 0000000000..315f02920f
> --- /dev/null
> +++ b/docs/specs/EGL_MESA_query_driver.txt
> @@ -0,0 +1,54 @@
> +Name
> +
> +    MESA_query_driver
> +
> +Name Strings
> +
> +    EGL_MESA_query_driver
> +
> +Contact
> +
> +    Rob Clark      <robdclark 'at' gmail.com>
> +    Nicolai Hähnle <Nicolai.Haehnle 'at' amd.com>
> +
> +Contibutors
> +
> +    Veluri Mithun <velurimithun38 'at' gmail.com>
> +
> +Status
> +
> +    XXX - Not complete yet!!! (draft)
> +
> +Version
> +
> +    Version 1, 2018-11-05
> +
> +Number
> +
> +    EGL Extension ###
> +
> +Dependencies
> +
> +    EGL 1.4 is required.
> +
> +Overview
> +
> +    When an application had to query the name of a DRI driver and for
> +    obtaining driver's option list (UTF-8 encoded XML) of a DRI
> +    driver the below functions are useful.
> +
> +New Procedures and Functions
> +
> +    const char* eglGetDriverConfig(EGLDisplay *dpy, EGLDeviceEXT device,
> +                                   const char *driverName);
> +    const char* eglGetDisplayDriverName(EGLDisplay *dpy, EGLDeviceEXT
> device);
> +
> +New Tokens
> +
> +
> +
> +Issues
> +
> +
> +
> +Revision History
> --
> 2.17.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181215/884fb041/attachment.html>


More information about the mesa-dev mailing list