[Mesa-dev] [PATCH] dri2: Remove the extra roundtrip during SwapBuffers

Eric Anholt eric at anholt.net
Sun Aug 11 11:42:45 PDT 2013


Chris Wilson <chris at chris-wilson.co.uk> writes:

> Currently we call XSync() to run the event queue to catch the invalidate
> event before we wait for the reply from the DRI2SwapBuffers request.
> However, the XServer sends the DRI2InvalidateNotify event before sending
> the DRI2SwapBuffers reply and so the invalidate event is processed in
> the normal manner by xcb before it returns the DRI2SwapBuffers reply
> without having to add an extra round-trip.

You need Xlib to have processed the event, not just XCB.  I remember the
XSync being required to make rendering actually work correctly when I
wrote the code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130811/32f50581/attachment.pgp>


More information about the mesa-dev mailing list