dri3: Wait for all pending swapbuffers to be scheduled before touching the front
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 22 Jun 2017 07:24:34 +0000 (09:24 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 2 Aug 2017 11:29:20 +0000 (13:29 +0200)
commit185ef06fd2db782d9d3d6046580f7cece02c4797
tree0a9ca611a95b603533ee019aa0cfb7166fdbd333
parentdd4e817b7f10ffffdadccae3b954b4d4c69248a9
dri3: Wait for all pending swapbuffers to be scheduled before touching the front

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.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: <mesa-stable@lists.freedesktop.org>
src/loader/loader_dri3_helper.c
src/loader/loader_dri3_helper.h