diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-12-01 08:11:18 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-12-01 08:13:18 +0000 |
commit | 0bec625cc45eb8de85a5013506cce5f789dc8e45 (patch) | |
tree | a34c23ed1a6df6460095c705ef22b98d9932c793 /src | |
parent | 6059b51b59537682b3d9c64c69ea72616462c41c (diff) |
sna: Report when we disable TearFree due to an error in operation
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_display.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index ee0ac914..94a2c8f7 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -7021,6 +7021,8 @@ void sna_mode_redisplay(struct sna *sna) } else { DBG(("%s: flip [fb=%d] on crtc %d [%d, pipe=%d] failed - %d\n", __FUNCTION__, arg.fb_id, i, sna_crtc->id, sna_crtc->pipe, errno)); + xf86DrvMsg(sna->scrn->scrnIndex, X_ERROR, + "Page flipping failed, disabling TearFree\n"); sna->flags &= ~SNA_TEAR_FREE; damage.extents = crtc->bounds; @@ -7148,6 +7150,8 @@ void sna_mode_redisplay(struct sna *sna) DBG(("%s: flip [fb=%d] on crtc %d [%d, pipe=%d] failed - %d\n", __FUNCTION__, arg.fb_id, i, sna_crtc->id, sna_crtc->pipe, errno)); + xf86DrvMsg(sna->scrn->scrnIndex, X_ERROR, + "Page flipping failed, disabling TearFree\n"); sna->flags &= ~SNA_TEAR_FREE; disable1: @@ -7292,7 +7296,10 @@ fixup_flip: crtc->bo = kgem_bo_reference(flip_bo); crtc->bo->active_scanout++; } else { + xf86DrvMsg(sna->scrn->scrnIndex, X_ERROR, + "Failed to prepare CRTC for page flipping, disabling TearFree\n"); sna->flags &= ~SNA_TEAR_FREE; + if (sna->mode.flip_active == 0) { DBG(("%s: abandoning flip attempt\n", __FUNCTION__)); goto fixup_shadow; |