diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-11-19 18:19:13 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-11-20 13:26:28 +0000 |
commit | f367f3dee5e2ecba265a8ff7e98e196189793613 (patch) | |
tree | 405eb27bf5694291c1a18d9ce8f00ae050b4853d | |
parent | 05a1aba1ab5d288918d6689080170fc83a80db61 (diff) |
sna/dri2: Add more DBG to explain invalid frames
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_dri2.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index f3395ce0..5e9f284f 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -2831,11 +2831,18 @@ sna_dri2_schedule_swap(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front, assert(get_private(front)->bo->refcnt); assert(get_private(back)->bo->refcnt); - if (get_private(front)->pixmap != get_drawable_pixmap(draw)) + if (get_private(front)->pixmap != get_drawable_pixmap(draw)) { + DBG(("%s: decoupled DRI2 front pixmap=%ld, actual pixmap=%ld\n", + __FUNCTION__, + get_private(front)->pixmap->drawable.serialNumber, + get_drawable_pixmap(draw)->drawable.serialNumber)); goto skip; + } - if (get_private(back)->stale) + if (get_private(back)->stale) { + DBG(("%s: stale back buffer\n", __FUNCTION__)); goto skip; + } assert(sna_pixmap_from_drawable(draw)->flush); @@ -2849,8 +2856,15 @@ sna_dri2_schedule_swap(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front, priv->front = NULL; } if (win->clipList.extents.x2 <= win->clipList.extents.x1 || - win->clipList.extents.y2 <= win->clipList.extents.y1) + win->clipList.extents.y2 <= win->clipList.extents.y1) { + DBG(("%s: window clipped (%d, %d), (%d, %d)\n", + __FUNCTION__, + win->clipList.extents.x1, + win->clipList.extents.y1, + win->clipList.extents.x2, + win->clipList.extents.y2)); goto skip; + } } /* Drawable not displayed... just complete the swap */ |