[Mesa-dev] [Bug 75797] New: EGL application crashes with BadDrawable at SwapBuffers
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Mar 5 06:22:55 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=75797
Priority: medium
Bug ID: 75797
Assignee: mesa-dev at lists.freedesktop.org
Summary: EGL application crashes with BadDrawable at
SwapBuffers
Severity: normal
Classification: Unclassified
OS: All
Reporter: scampa.giovanni at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140305/154f7f9d/attachment.html>
More information about the mesa-dev
mailing list