diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-04-03 20:16:47 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-04-03 20:18:03 +0100 |
commit | 90792c933d9a6160e6646121cfe79ee857f70655 (patch) | |
tree | 214c07d8e53e00bc1d97d11c15619b677cec2321 | |
parent | 2c4890001db18cc0534dd4a1f8d09c5df72c9404 (diff) |
sna: Only print "Failed to prepare CRTC ... disabling TearFree" once
The actual disablement doesn't take place until the next modeset, and
until then we are likely to keep spamming the error message.
References: https://bugs.freedesktop.org/show_bug.cgi?id=94806
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_display.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 6cb10e61..8de65dc9 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -8937,9 +8937,11 @@ 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->flags & SNA_TEAR_FREE) { + 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__)); |