• Neil Roberts's avatar
    Add the EGL_MESA_configless_context extension · 551d459a
    Neil Roberts authored
    This extension provides a way for an application to render to multiple
    surfaces with different buffer formats without having to use multiple
    contexts. An EGLContext can be created without an EGLConfig by passing
    EGL_NO_CONFIG_MESA. In that case there are no restrictions on the surfaces
    that can be used with the context apart from that they must be using the same
    _mesa_initialze_context can now take a NULL gl_config which will mark the
    context as ‘configless’. It will memset the visual to zero in that case.
    Previously the i965 and i915 drivers were explicitly creating a zeroed visual
    whenever 0 is passed for the EGLConfig. Mesa needs to be aware that the
    context is configless because it affects the initial value to use for
    glDrawBuffer. The first time the context is bound it will set the initial
    value for configless contexts depending on whether the framebuffer used is
    Reviewed-by: Kristian H. Kristensen's avatarKristian Høgsberg <krh@bitplanet.net>
eglmesaext.h 8.2 KB