summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-09-03 01:00:23 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-09-03 01:00:23 +0100
commitefc960b1358d12de6c806a655fabade7278e0651 (patch)
treec9bdcff129b072fdd0682f10bc7bee4592117429 /tools
parent6f090044d1de4160777963910df3586bdf0186dc (diff)
intel-virtual-output: Clear send flags when doing XSync
When falling back to using XSync rather than XSendEvent it is imperative that we remember to clear the flag so that we don't keep on performing the synchronous RTT every time. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 43146dc3..8e241e53 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -2235,6 +2235,8 @@ static void display_flush_send(struct display *display)
(long)NextRequest(display->dpy),
display->shm_event));
+ display->send = 0;
+
if (display->shm_event == 0) {
XSync(display->dpy, False);
display->flush = 0;
@@ -2251,7 +2253,6 @@ static void display_flush_send(struct display *display)
e.offset = 0;
XSendEvent(display->dpy, display->root, False, 0, (XEvent *)&e);
- display->send = 0;
display_mark_flush(display);
}