Re: [PATCH 3/8] glamor: Put in a pluggable context switcher for GLX versus EGL.

2014-02-06 Thread Keith Packard
Eric Anholt e...@anholt.net writes: Yeah, these seem like sensible changes, but I think I'll save them for later. I don't think it would help with the glamor_egl private, because the problem there is that you're doing initialization work and storing stuff before there's a screen to attach

Re: [PATCH 3/8] glamor: Put in a pluggable context switcher for GLX versus EGL.

2014-02-05 Thread Keith Packard
Eric Anholt e...@anholt.net writes: +struct glamor_context { +/** Either an EGLDisplay or an Xlib Display */ +void *display; + +/** Either a GLXContext or an EGLContext. */ +void *ctx; + +/** The EGLSurface we should MakeCurrent to */ +void *drawable; + +

[PATCH 3/8] glamor: Put in a pluggable context switcher for GLX versus EGL.

2014-02-03 Thread Eric Anholt
The GLX side just gets the context from the current state. That's also something I want to do for EGL, so that the making a context is separate from initializing glamor, but I think I need the modesetting driver in the server before I think about hacking on that more. The previous code was