<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - piglit spec/egl_khr_create_context/valid debug flag gles* fail"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91044">91044</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>piglit spec/egl_khr_create_context/valid debug flag gles* fail
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>EGL
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>stu_dby@126.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When running piglit test on egl_x11 platform, I accidentally noticed that
piglit test spec/egl_khr_create_context/valid debug flag gles{1,2,3} fail. The
reason is that mesa EGL gives unexpected EGL_BAD_ATTRIBUTE. Digging into the
EGL code, I found libEGL will give EGL_BAD_ATTRIBUTE when setting
EGL_CONTEXT_FLAGS_KHR in non-OpenGL contexts (including OpenGL ES context),
with the quote in comment:

 /* The EGL_KHR_create_context spec says:
  *
  *     "Flags are only defined for OpenGL context creation, and
  *     specifying a flags value other than zero for other types of
  *     contexts, including OpenGL ES contexts, will generate an
  *     error."
  */

However, I can't find the words quoted in the present EGL_KHR_create_context
spec. On the other hand, it allows creating debug context in OpenGL ES (i.e.
setting EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR in EGL_CONTEXT_FLAGS_KHR).

Should we just remove the non-OpenGL check or just allow
EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR in OpenGL ES context?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>