From 5489402ca1fe17d5b4d20e4dcdc6ac8e6e415b0b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 13 Mar 2016 13:28:42 +0000 Subject: sna/present: Add a modicum more debug info References: https://bugs.freedesktop.org/show_bug.cgi?id=94515 Signed-off-by: Chris Wilson --- src/sna/sna_present.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/sna') diff --git a/src/sna/sna_present.c b/src/sna/sna_present.c index 2de5ddf4..d7a2661a 100644 --- a/src/sna/sna_present.c +++ b/src/sna/sna_present.c @@ -309,11 +309,11 @@ sna_present_queue_vblank(RRCrtcPtr crtc, uint64_t event_id, uint64_t msc) const struct ust_msc *swap; union drm_wait_vblank vbl; - DBG(("%s(pipe=%d, event=%lld, msc=%lld)\n", + swap = sna_crtc_last_swap(crtc->devPrivate); + DBG(("%s(pipe=%d, event=%lld, msc=%lld, last swap=%lld)\n", __FUNCTION__, sna_crtc_pipe(crtc->devPrivate), - (long long)event_id, (long long)msc)); + (long long)event_id, (long long)msc, (long long)swap->msc)); - swap = sna_crtc_last_swap(crtc->devPrivate); warn_unless((int64_t)(msc - swap->msc) >= 0); if ((int64_t)(msc - swap->msc) <= 0) { DBG(("%s: pipe=%d tv=%d.%06d msc=%lld (target=%lld), event=%lld complete\n", __FUNCTION__, @@ -324,6 +324,7 @@ sna_present_queue_vblank(RRCrtcPtr crtc, uint64_t event_id, uint64_t msc) present_event_notify(event_id, swap_ust(swap), swap->msc); return Success; } + warn_unless(msc < swap->msc + 1ull<<32); list_for_each_entry(tmp, &sna->present.vblank_queue, link) { if (tmp->target_msc == msc && -- cgit v1.2.3