xf86-video-intel: src/sna/sna_display.c

Chris Wilson ickle at kemper.freedesktop.org
Mon Dec 1 00:13:44 PST 2014


 src/sna/sna_display.c |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 0bec625cc45eb8de85a5013506cce5f789dc8e45
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Dec 1 08:11:18 2014 +0000

    sna: Report when we disable TearFree due to an error in operation
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index ee0ac91..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;


More information about the xorg-commit mailing list