summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-05 12:41:06 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-05 12:42:56 +0100
commit45892b3a63613af67e249e9ad006f2b2002570c0 (patch)
treeab4466de91b885c7ede39d8301bbe3bd52a19133 /tools
parent6c9f216d7ce7c329b1008cb09c9de55396e0e6b1 (diff)
intel-virtual-output: Record shm/randr/xinerama queries in DBG log
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 1444bdec..b2f3069f 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -1995,10 +1995,27 @@ static int add_display(struct context *ctx, Display *dpy)
&display->shm_event,
&display->shm_opcode,
&display->has_shm_pixmap);
+ DBG(("%s: has_shm?=%d, event=%d, opcode=%d, has_pixmap?=%d\n",
+ DisplayString(dpy),
+ display->has_shm,
+ display->shm_event,
+ display->shm_opcode,
+ display->has_shm_pixmap));
display->rr_active = XRRQueryExtension(dpy, &display->rr_event, &display->rr_error);
+ DBG(("%s: randr_active?=%d, event=%d, error=%d\n",
+ DisplayString(dpy),
+ display->rr_active,
+ display->rr_event,
+ display->rr_error));
+
if (XineramaQueryExtension(dpy, &display->xinerama_event, &display->xinerama_error))
display->xinerama_active = XineramaIsActive(dpy);
+ DBG(("%s: xinerama_active?=%d, event=%d, error=%d\n",
+ DisplayString(dpy),
+ display->xinerama_active,
+ display->xinerama_event,
+ display->xinerama_error));
/* first display (source) is slightly special */
if (!first_display) {