Skip to content
  • Ian Romanick's avatar
    glx: Implement GLX_EXT_create_context_es2_profile · 41d5120e
    Ian Romanick authored and Keith Packard's avatar Keith Packard committed
    
    
    This patch builds on the infrastucture put in place for
    GLX_ARB_create_context_profile.  If GLX_CONTEXT_ES2_PROFILE_BIT_EXT is
    specified and the requested version is 2.0, create a context with the
    __DRI_API_GLES2 API.
    
    This change assumes that any DRI2 driver can handle (possibly by saying "no
    seeing an API setting other than __DRI_API_OPENGL or __DRI_API_OPENGL_CORE.
    This allows enabling the extension any time GLX_ARB_create_context (and
    GLX_ARB_create_context_profile) is enabled.
    
    v2: Clean up some comments.  Note that our behavior for
    GLX_CONTEXT_ES2_PROFILE_BIT_EXT w/version != 2.0 matches NVIDIA's.
    
    Signed-off-by: default avatarIan Romanick <ian.d.romanick@intel.com>
    Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
    Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
    41d5120e