EGL_MESA_choose_display version 1

Adam Jackson ajax at nwnk.net
Wed Jun 15 12:06:32 PDT 2005


On Wednesday 15 June 2005 14:05, Jon Smirl wrote:
> On 6/15/05, Adam Jackson <ajax at nwnk.net> wrote:
> > If you have exactly one card, sure.  Now imagine you have an nvidia card
> > in slot one and an ati card in slot two.  You will not be able to make
> > that look like one display with a bunch of screens at the EGL level, and
> > you should not try.
> >
> > You seem to be suggesting that there is only one EGLDisplay per system. 
> > I really don't think you mean that.
>
> No, I'm making one EGLDisplay per screen.

Then you're doing it wrong and/or confusing the hell out of me.

From version 9 of EGL_MESA_screen_surface:

    EGLBoolean eglGetScreensMESA(EGLDisplay dpy, EGLScreenMesa *screens,
                                 EGLint screens_size, EGLint *num_screens);

If we're doing one screen per display then why do we even have this call and 
why did you fight so hard [1] to make screen handles opaque and dynamic?  If 
you do one EGLDisplay per screen then *num_screens will always be 1, won't 
it?

This is why having a "screen" transport in eglChooseDisplayMESA is 
fundamentally wrong.  Screens are not the objects we're trying to address 
here.

[1] - See the version 6 and version 7 threads:
http://lists.freedesktop.org/archives/dri-egl/2005-April/000259.html
http://lists.freedesktop.org/archives/dri-egl/2005-April/000269.html

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dri-egl/attachments/20050615/0afbb10a/attachment.pgp


More information about the dri-egl mailing list