summaryrefslogtreecommitdiff
path: root/src/glx/x11/dri2.h
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2009-09-15 23:23:09 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-01-08 12:31:10 -0500
commitdaf7fe69f7bd0caa955d30b43fc35b7ce0069b6b (patch)
tree8238c08b7c0f0b0af4230d0d5030169ffddb46db /src/glx/x11/dri2.h
parenta35f6bb207efe3c959bbd16a37f2049e5aceeea9 (diff)
DRI2: add OML_sync_control support
Add OML_sync_control support, along with a simple program for testing it. This means adding support for the DRI2GetMSC, DRI2WaitMSC and DRI2WaitSBC requests. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'src/glx/x11/dri2.h')
-rw-r--r--src/glx/x11/dri2.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/glx/x11/dri2.h b/src/glx/x11/dri2.h
index ba6eff5e4f..ae6030842c 100644
--- a/src/glx/x11/dri2.h
+++ b/src/glx/x11/dri2.h
@@ -86,6 +86,18 @@ DRI2CopyRegion(Display * dpy, XID drawable,
CARD32 dest, CARD32 src);
extern void
-DRI2SwapBuffers(Display *dpy, XID drawable);
+DRI2SwapBuffers(Display *dpy, XID drawable, CARD64 target_msc, CARD64 divisor,
+ CARD64 remainder, CARD64 *count);
+
+extern Bool
+DRI2GetMSC(Display *dpy, XID drawable, CARD64 *ust, CARD64 *msc, CARD64 *sbc);
+
+extern Bool
+DRI2WaitMSC(Display *dpy, XID drawable, CARD64 target_msc, CARD64 divisor,
+ CARD64 remainder, CARD64 *ust, CARD64 *msc, CARD64 *sbc);
+
+extern Bool
+DRI2WaitSBC(Display *dpy, XID drawable, CARD64 target_sbc, CARD64 *ust,
+ CARD64 *msc, CARD64 *sbc);
#endif