Bug 102067

Summary: Is it possible select a driver/implementation in an application? (like in OpenCL)
Product: Mesa Reporter: myocytebd <myocytebd>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description myocytebd@sina.com 2017-08-07 10:54:57 UTC
This is not quite a question for Mesa.
However Linux graphics stack is sort of confusing and lack of documentation,
and I don't know where to ask this question.

Is it possible for a application to enumerate and select the GL implementation,
like in OpenCL?

In case of:
1. Mesa EGL.
   How to enumerate and select a GL vendor/implementation?
2. GLX.
   Is it possible to enumerate and select the GL drivers?
3. Wayland.
   Is Mesa EGL/DRI the only frontend/backend?
   (Or is there some way to load proprietary drivers?)
Comment 1 Emil Velikov 2017-08-08 15:04:56 UTC
(In reply to myocytebd@sina.com from comment #0)

> Is it possible for a application to enumerate and select the GL
> implementation,
> like in OpenCL?
> 
> In case of:
> 1. Mesa EGL.
>    How to enumerate and select a GL vendor/implementation?
There is the EGL device set of extensions. There are some WIP patches for mesa, but none are merged yet.

> 2. GLX.
>    Is it possible to enumerate and select the GL drivers?
AFAICT no extensions that provide the functionality are available.

> 3. Wayland.
>    Is Mesa EGL/DRI the only frontend/backend?
>    (Or is there some way to load proprietary drivers?)
Yes there are proprietary drivers that have Wayland support.
Regardless, Wayland is used in conjunction with EGL, which can use the above extensions.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.