[Mesa-dev] [Bug 56706] New: EGL sets error to EGL_SUCCESS when DRI driver fails to create context

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Nov 2 23:32:20 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=56706

          Priority: medium
            Bug ID: 56706
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: EGL sets error to EGL_SUCCESS when DRI driver fails to
                    create context
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: chad.versace at linux.intel.com
          Hardware: All
            Status: NEW
           Version: git
         Component: GLX
           Product: Mesa

Observed on mesa-84b4372 with i965.

There is no bugzilla category for EGL, so I'm placing this bug in the GLX
category.


How to reproduce
-----------------
On i965, call eglCreateContext() with
EGL_CONTEXT_MAJOR_VERSION_KHR/EGL_CONTEXT_MINOR_VERSION_KHR set to 3.2. Context
creation will fail because i965 does not yet support GL 3.2. Afterwards,
eglGetError() returns EGL_SUCCESS.

For a standalone testcase that reproduces the problem, run the example program
"gl_basic" found in waffle-7d76755. Run it as `gl_basic x11_egl gl 3.2.


Expected behavior
-----------------
eglGetError() should return EGL_BAD_MATCH. From the EGL_KHR_create_context
spec:

      * If an OpenGL context is requested and the values for attributes
        EGL_CONTEXT_MAJOR_VERSION_KHR and EGL_CONTEXT_MINOR_VERSION_KHR,
        when considered together with the value for attribute
        EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR, specify an OpenGL
        version and feature set that are not defined, than an
        EGL_BAD_MATCH error is generated.


Diagnosis
---------
In eglCreateContext, no error code is set when drv->API.CreateContext fails.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121103/47040cb4/attachment.html>


More information about the mesa-dev mailing list