diff options
author | Thomas Hellstrom <[email protected]> | 2017-06-22 09:24:34 +0200 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2017-08-02 13:29:20 +0200 |
commit | 185ef06fd2db782d9d3d6046580f7cece02c4797 (patch) | |
tree | 0a9ca611a95b603533ee019aa0cfb7166fdbd333 /src/loader/loader_dri3_helper.h | |
parent | dd4e817b7f10ffffdadccae3b954b4d4c69248a9 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Sinclair Yeh <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Cc: <[email protected]>
Diffstat (limited to 'src/loader/loader_dri3_helper.h')
-rw-r--r-- | src/loader/loader_dri3_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/loader/loader_dri3_helper.h b/src/loader/loader_dri3_helper.h index 628b0f9f09e..90ee2007afb 100644 --- a/src/loader/loader_dri3_helper.h +++ b/src/loader/loader_dri3_helper.h @@ -240,4 +240,7 @@ loader_dri3_get_buffers(__DRIdrawable *driDrawable, void loader_dri3_update_drawable_geometry(struct loader_dri3_drawable *draw); + +void +loader_dri3_swapbuffer_barrier(struct loader_dri3_drawable *draw); #endif |