From 45892b3a63613af67e249e9ad006f2b2002570c0 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 5 May 2014 12:41:06 +0100 Subject: intel-virtual-output: Record shm/randr/xinerama queries in DBG log Signed-off-by: Chris Wilson --- tools/virtual.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tools/virtual.c') 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) { -- cgit v1.2.3