summaryrefslogtreecommitdiffstats
path: root/src/glx/dri2.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-09-25 12:26:39 -0700
committerEric Anholt <eric@anholt.net>2012-10-09 14:32:03 -0700
commit8c472b8f6a612a810aec34283d90bb5aa88bf855 (patch)
tree2c679304e821a04031d9905ef821ed28e7779239 /src/glx/dri2.c
parentf02242a4fa0db20c5e02ecf0d4d5a6bdf42ccc83 (diff)
downloadexternal_mesa3d-8c472b8f6a612a810aec34283d90bb5aa88bf855.zip
external_mesa3d-8c472b8f6a612a810aec34283d90bb5aa88bf855.tar.gz
external_mesa3d-8c472b8f6a612a810aec34283d90bb5aa88bf855.tar.bz2
glx: Replace DRI2SwapBuffers() custom protocol with XCB.
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/glx/dri2.c')
-rw-r--r--src/glx/dri2.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/glx/dri2.c b/src/glx/dri2.c
index c77ef7b..bcd1f9c 100644
--- a/src/glx/dri2.c
+++ b/src/glx/dri2.c
@@ -541,48 +541,4 @@ DRI2CopyRegion(Display * dpy, XID drawable, XserverRegion region,
SyncHandle();
}
-#ifdef X_DRI2SwapBuffers
-static void
-load_swap_req(xDRI2SwapBuffersReq *req, CARD64 target, CARD64 divisor,
- CARD64 remainder)
-{
- req->target_msc_hi = target >> 32;
- req->target_msc_lo = target & 0xffffffff;
- req->divisor_hi = divisor >> 32;
- req->divisor_lo = divisor & 0xffffffff;
- req->remainder_hi = remainder >> 32;
- req->remainder_lo = remainder & 0xffffffff;
-}
-
-static CARD64
-vals_to_card64(CARD32 lo, CARD32 hi)
-{
- return (CARD64)hi << 32 | lo;
-}
-
-void DRI2SwapBuffers(Display *dpy, XID drawable, CARD64 target_msc,
- CARD64 divisor, CARD64 remainder, CARD64 *count)
-{
- XExtDisplayInfo *info = DRI2FindDisplay(dpy);
- xDRI2SwapBuffersReq *req;
- xDRI2SwapBuffersReply rep;
-
- XextSimpleCheckExtension (dpy, info, dri2ExtensionName);
-
- LockDisplay(dpy);
- GetReq(DRI2SwapBuffers, req);
- req->reqType = info->codes->major_opcode;
- req->dri2ReqType = X_DRI2SwapBuffers;
- req->drawable = drawable;
- load_swap_req(req, target_msc, divisor, remainder);
-
- _XReply(dpy, (xReply *)&rep, 0, xFalse);
-
- *count = vals_to_card64(rep.swap_lo, rep.swap_hi);
-
- UnlockDisplay(dpy);
- SyncHandle();
-}
-#endif
-
#endif /* GLX_DIRECT_RENDERING */