Native surface creation

Adam Jackson ajax at nwnk.net
Fri Mar 11 12:51:14 PST 2005


On Friday 11 March 2005 15:37, Jon Smirl wrote:
> On Fri, 11 Mar 2005 15:32:29 -0500, Adam Jackson <ajax at nwnk.net> wrote:
> > On Friday 11 March 2005 15:06, Jon Smirl wrote:
> > > If mode is changed this will generate a hal/dbus event but that isn't
> > > implemented yet. Same if the list of modes changes via monitor
> > > hotplug.
> >
> > Mode change is something I haven't thought through completely yet.  GL
> > doesn't really have a way to send notifications up to the app
> > asynchronously, though EGL does give us a "context lost" error condition
> > that can trigger at any time that might be good enough...
> >
> > I really hesitate to be the guy that adds the first callback to GL
> > though.
>
> The hal/dbus event can go as high as you want. Maybe it would be
> better if the upper layers caught it and sent it back down into EGL.

This sounds like the way to go.  I don't think we want the driver listening 
for dbus events, it doesn't necessarily have enough information to act on 
them correctly.  If we kick this up to the server, then we can do things like 
generate randr notifies for clients, intelligently reconfigure our root 
window surface, etc.

Handling this through a callback coming out of the EGL layer seems wrong.

- 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/20050311/2b14808b/attachment.pgp


More information about the dri-egl mailing list