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

            Bug ID: 106377
           Summary: eglWaitClient() doesn't work for surfaceless contexts
           Product: Mesa
           Version: 18.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: medium
         Component: EGL
          Assignee: mesa-dev@lists.freedesktop.org
          Reporter: mgorc...@qnx.com
        QA Contact: mesa-dev@lists.freedesktop.org

When surfaceless contexts are in use (for example, for FBO rendering),
eglWaitClient return an error EGL_BAD_CURRENT_SURFACE. According to spec it
should do glFinish()-like behavior disregarding if it has bound surface to the
context or not.

In case of using DRI2 backend it happens that in case of surfaceless context
dri2_wait_client() is not called at all and aborted at _eglWaitClientCommon()
function with following check:

   /* let bad current context imply bad current surface */
   if (_eglGetContextHandle(ctx) == EGL_NO_CONTEXT ||
       _eglGetSurfaceHandle(ctx->DrawSurface) == EGL_NO_SURFACE)
      RETURN_EGL_ERROR(disp, EGL_BAD_CURRENT_SURFACE, EGL_FALSE);

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to