[Mesa-dev] [PATCH 1/5] dri3: Wait for all pending swapbuffers to be scheduled before touching the front

Eric Anholt eric at anholt.net
Fri Jun 30 19:55:03 UTC 2017


Thomas Hellstrom <thellstrom at vmware.com> writes:

> This implements a wait for glXWaitGL, glXCopySubBuffer, dri flush_front and
> creation of fake front until all pending SwapBuffers have been committed to
> hardware. Among other things this fixes piglit glx-copy-sub-buffers on dri3.

The GLX spec loves to talk about the GL command stream and the X command
stream and what goes where, but the Present swap queue is effectively a
separate command stream from either of those.

I don't think we want to make the Present queue sync against other
command streams on the server side, so we have to manually sync against
it to pretend that Presents happen in the GL command stream.  Thus:

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170630/4de03de8/attachment-0001.sig>


More information about the mesa-dev mailing list