gallium/st: Add a method to flush outstanding swapbuffers
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 20 Jun 2017 16:36:08 +0000 (18:36 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 3 Aug 2017 06:01:25 +0000 (08:01 +0200)
commit91c93dec980dbf7b253c124b85dc4e46d2a83587
tree69acc37b574335e1fd9106a8fdcc038b03bfcb85
parentad5136ac826a9e34d1f789398016a018c42a27ca
gallium/st: Add a method to flush outstanding swapbuffers

Add a state tracker interface method to flush outstanding swapbuffers, and
add a call to it from the mesa state tracker during glFinish().
This doesn't strictly mean the outstanding swapbuffers have actually finished
executing but is sufficient for glFinish()
to be able to be used as a replacement for glXWaitGL().

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
src/gallium/include/state_tracker/st_api.h
src/mesa/state_tracker/st_cb_flush.c
src/mesa/state_tracker/st_manager.c
src/mesa/state_tracker/st_manager.h