xf86-video-intel: tools/virtual.c
Chris Wilson
ickle at kemper.freedesktop.org
Tue Sep 3 01:00:47 PDT 2013
tools/virtual.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit efc960b1358d12de6c806a655fabade7278e0651
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Tue Sep 3 01:00:23 2013 +0100
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 at chris-wilson.co.uk>
diff --git a/tools/virtual.c b/tools/virtual.c
index 43146dc..8e241e5 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);
}
More information about the xorg-commit
mailing list