[Mesa-dev] [PATCH 3/3] specs: Add EGL_MESA_platform_device

Adam Jackson ajax at redhat.com
Tue Aug 8 17:15:35 UTC 2017


On Mon, 2017-08-07 at 09:24 +0100, Daniel Stone wrote:
> On 2 August 2017 at 21:24, Adam Jackson <ajax at redhat.com> wrote:
> > +Overview
> > +
> > +    A system may support multiple devices and multiple window systems. For
> > +    example, a Wayland environment may drive multiple GPUs and support both
> > +    GLX and EGL clients. In order to realize this, the implementation must
> > +    allow the client to specify both device and platform explicitly.
> 
> s/GLX/X11/
> 
> > +New Behavior
> > +
> > +    If EGL_DEVICE_EXT is specified as an attribute for eglGetPlatformDisplay,
> > +    the value of the attribute is interpreted as an EGLDeviceEXT as returned
> > +    by eglQueryDevicesEXT. The platform will attempt to initialize using
> > +    exactly the specified device. If the attribute does not name a known
> > +    EGLDeviceEXT, EGL_BAD_DEVICE_EXT is generated. If the device and platform
> > +    are not compatible for any reason, EGL_BAD_MATCH is generated.
> > +
> > +    If EGL_EXT_platform_device is supported, passing EGL_DEVICE_EXT as an
> > +    attribute to eglGetPlatformDisplay(EGL_PLATFORM_DEVICE_EXT) is
> > +    undefined.
> 
> Might as well make it an error, else someone will come to rely on
> those semantics.
> 
> Also, given it seems like something other people will want to support,
> we should definitely make this EXT.

Word, thanks. I've folded in the review suggestions and opened an EGL
registry PR for this to (hopefully) get non-Mesa feedback:

https://github.com/KhronosGroup/EGL-Registry/pull/23

- ajax


More information about the mesa-dev mailing list