Commit e8882dde authored by Austin Yuan's avatar Austin Yuan

Revert the change in VA_DRI2SwapBuffers: _XReply -->_XSend

We should use _XReplay. _XSend will introduce more CPU usage
Signed-off-by: default avatarEdgar Hucek <gimli@dark-green.com>
Signed-off-by: default avatarAustin Yuan <shengquan.yuan@gmail.com>
parent 5b710431
...@@ -340,9 +340,9 @@ void VA_DRI2SwapBuffers(Display *dpy, XID drawable, CARD64 target_msc, ...@@ -340,9 +340,9 @@ void VA_DRI2SwapBuffers(Display *dpy, XID drawable, CARD64 target_msc,
req->drawable = drawable; req->drawable = drawable;
load_swap_req(req, target_msc, divisor, remainder); load_swap_req(req, target_msc, divisor, remainder);
_XSend(dpy, NULL, 0); _XReply(dpy, (xReply *)&rep, 0, xFalse);
*count = 0; *count = vals_to_card64(rep.swap_lo, rep.swap_hi);
UnlockDisplay(dpy); UnlockDisplay(dpy);
SyncHandle(); SyncHandle();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment