intel-virtual-output: Add DBG for the latest XSync
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Nov 2013 12:58:06 +0000 (12:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Nov 2013 12:58:06 +0000 (12:58 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tools/virtual.c

index 74a03e8..b1527df 100644 (file)
@@ -1363,6 +1363,9 @@ static int clone_paint(struct clone *c)
                        if (c->dst.display->send++ == 0)
                                return EAGAIN;
 
+                       DBG(("%s-%s forcing sync (last SHM serial: %ld, now %ld)\n",
+                            DisplayString(c->dst.dpy), c->dst.name,
+                            (long)c->dst.serial, (long)LastKnownRequestProcessed(c->dst.dpy)));
                        XSync(c->dst.dpy, False);
                        c->dst.display->flush = 0;
                        c->dst.display->send = 0;