From: Chia-I Wu <ol...@gm...> - 2010-04-06 15:30:35
|
2010/4/6 Michel Dänzer <mi...@da...>: > On Tue, 2010-04-06 at 04:56 -0700, Chia-I Wu wrote: >> Module: Mesa >> Branch: master >> Commit: d18d0fdcd8daa0d9979b72978795f0305d2db7c8 >> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d18d0fdcd8daa0d9979b72978795f0305d2db7c8 >> >> Author: Chia-I Wu <ol...@lu...> >> Date: Tue Apr 6 19:52:39 2010 +0800 >> >> egl_dri2: Flush before context switch and swap buffers. >> >> DRI does not define any callback to flush the current context. GLX >> loader simply calls glFlush. Follow the GLX loader here. > Beware that the GLX loader doesn't follow the GLX spec for SwapBuffers > (3.3.10): > *If* dpy and draw are the display and drawable for the calling > thread’s current context, glXSwapBuffers performs an implicit > glFlush. > (emphasis mine) Yes, the change follows EGL spec, which is equivalent to GLX here: If dpy and surface are the display and surface for the calling thread’s current context, eglSwapBuffers and eglCopyBuffers perform an implicit flush operation on the context (glFlush for an OpenGL or OpenGL ES context, vgFlush for an OpenVG context). Thanks for reminding still. -- ol...@Lu... |