diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-13 13:28:42 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-13 13:28:42 +0000 |
commit | 5489402ca1fe17d5b4d20e4dcdc6ac8e6e415b0b (patch) | |
tree | 8e9d321488bb4d1aa8b1502d6033b1963fd4df57 | |
parent | 0204e55b618af285eb31c6eecc3c57b54319a0f4 (diff) |
sna/present: Add a modicum more debug info
References: https://bugs.freedesktop.org/show_bug.cgi?id=94515
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_present.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 && |