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

          Priority: medium
            Bug ID: 75797
          Assignee: mesa-dev@lists.freedesktop.org
           Summary: EGL application crashes with BadDrawable at
                    SwapBuffers
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: scampa.giova...@gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: EGL
           Product: Mesa

Created attachment 95167
  --> https://bugs.freedesktop.org/attachment.cgi?id=95167&action=edit
Test case

If you create two X windows, make one EGL context current to the first one and
then to the second one, then clear and swap the second one, you will get an X
error at swap buffers time.

After debugging, I found that the glClear is optimized away because the
gl_framebuffer has Width and Height == 0, despite the glViewport call that
invalidated the drawable. Thus intel_prepare_render() is never reached (the
viewport is already initialized in the second MakeCurrent call) and we never
query X for the DRI2 buffers for the second window.

X logs include
[107772.804] (EE) intel(0): [DRI2] DRI2SwapBuffers: drawable has no back or
front?


Test case attached. This is 100% reproducible here.

Mesa is befbda56a246f77797bdf13fc005353441db2879, from Feb 22, master branch.
Driver is i965 DRI, on a GM45 card.

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

Reply via email to