From 91c93dec980dbf7b253c124b85dc4e46d2a83587 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Tue, 20 Jun 2017 18:36:08 +0200 Subject: gallium/st: Add a method to flush outstanding swapbuffers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marek Olšák Reviewed-by: Brian Paul Reviewed-by: Sinclair Yeh --- src/gallium/include/state_tracker/st_api.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/include') diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h index bc62a69da37..2eaf891ab7a 100644 --- a/src/gallium/include/state_tracker/st_api.h +++ b/src/gallium/include/state_tracker/st_api.h @@ -366,6 +366,8 @@ struct st_framebuffer_iface const enum st_attachment_type *statts, unsigned count, struct pipe_resource **out); + boolean (*flush_swapbuffers) (struct st_context_iface *stctx, + struct st_framebuffer_iface *stfbi); }; /** -- cgit v1.2.3