[Mesa-dev] [PATCH] EGL/mesa: Initial write up fot MESA_query_driver
Rob Clark
robdclark at gmail.com
Thu Dec 20 21:33:19 UTC 2018
On Sat, Dec 15, 2018 at 12:27 PM Veluri Mithun <velurimithun38 at gmail.com> wrote:
>
> 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?
>
from the looks of it, that is pipe_loader_get_driinfo_xml() for
gallium drivers.. and I guess you could reuse it
BR,
-R
> 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
>>
More information about the mesa-dev
mailing list