EGL and X spec ambiguities

Tomas Carnecky tom at dbservice.com
Mon Dec 10 08:31:25 PST 2007


michael giovinco wrote:
> Yes, in X, a display can have multiple screens but it's not the same in
> EGL. That's the problem. Your solution would be ideal, but how would you
> do it? How would you get an EGLDisplay handle for each screen when
> eglGetDisplay wants a X Display as a parameter. Calling XOpenDisplay
> multiple times to create multiple X Display structures is not a option.
> X applications don't work that way. The application only wants a single
> "display" with multiple screens.

Change the application to work with multiple X/EGL displays?

As you've seen yourself, it's simply not possible to use one EGLDisplay
to talk to multiple screens. So you either continue to use EGL and try
to work around it (by opening multiple X displays) or you'll have to use
something else (X and GLX or /dev/fb and mesa or whatever there is
available).

tom


More information about the dri-egl mailing list