diff options
author | Austin Yuan <shengquan.yuan@gmail.com> | 2011-06-10 14:00:11 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@gmail.com> | 2011-06-10 14:00:11 +0800 |
commit | e8882dde71b51450fa384a65c62fbe2b1500efc3 (patch) | |
tree | d2cc655d1e06f1649ff205fb4e1845cf58024e3b /va/x11 | |
parent | 5b7104314bb1d90096fa30469d49fb9848fbb645 (diff) | |
download | libva-e8882dde71b51450fa384a65c62fbe2b1500efc3.tar.gz |
Revert the change in VA_DRI2SwapBuffers: _XReply -->_XSend
We should use _XReplay. _XSend will introduce more CPU usage
Signed-off-by: Edgar Hucek <gimli@dark-green.com>
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Diffstat (limited to 'va/x11')
-rw-r--r-- | va/x11/va_dri2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/va/x11/va_dri2.c b/va/x11/va_dri2.c index 8e9f304..4915651 100644 --- a/va/x11/va_dri2.c +++ b/va/x11/va_dri2.c @@ -340,9 +340,9 @@ void VA_DRI2SwapBuffers(Display *dpy, XID drawable, CARD64 target_msc, req->drawable = drawable; 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); SyncHandle(); |