[Mesa-dev] DRM EGL swapbuffers?
thomas at shipmail.org
Tue Feb 22 00:56:24 PST 2011
Looking at the EGL DRM implementation of swapbuffers, it looks like
we're sort of ad-hoc attaching the backbuffer as a new scanout surface,
I don't think this works very well on all hardware. In particular, I
think drmModeSetCrtc may return before the swap actually takes place,
which will cause rendering to the old front buffer while it is still
Could you fill me in why the pageflip ioctl isn't used here, and a
surface copy in situations where the pageflip ioctl can't be used? IIRC,
the pageflip ioctl is required to block rendering to the old frontbuffer
until the new frontbuffer is flipped in.
More information about the mesa-dev