From b121d62accb8c346b4e1b1bce99586e13712f04a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 26 Nov 2013 03:07:55 -0800 Subject: [PATCH] present: Add a debug output line when skipping a pending present When an application provides two pixmaps for the same MSC, the previous one is skipped. This just dumps out some information at that point Signed-off-by: Keith Packard Reviewed-by: Adam Jackson --- present/present.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/present/present.c b/present/present.c index f9eef6b..f446feb 100644 --- a/present/present.c +++ b/present/present.c @@ -621,6 +621,11 @@ present_pixmap(WindowPtr window, if (vblank->crtc != target_crtc || vblank->target_msc != target_msc) continue; + DebugPresent(("\tx %lld %p %8lld: %08lx -> %08lx (crtc %p)\n", + vblank->event_id, vblank, target_msc, + vblank->pixmap->drawable.id, vblank->window->drawable.id, + vblank->crtc)); + present_pixmap_idle(vblank->pixmap, vblank->window, vblank->serial, vblank->idle_fence); present_fence_destroy(vblank->idle_fence); dixDestroyPixmap(vblank->pixmap, vblank->pixmap->drawable.id); -- 2.7.4