From 6153141fa6e1328a007efe6862ff2d7b4adaaf83 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 8 Jun 2014 14:48:20 +0100 Subject: [PATCH] sna/dri2: Allow xchg to replace the frontbuffer when all outputs are off Signed-off-by: Chris Wilson --- src/sna/sna_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 622a8e6f..c95ef0cb 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -1497,7 +1497,7 @@ can_xchg(struct sna * sna, return false; } - if (pixmap == sna->front && !(sna->flags & SNA_TEAR_FREE)) { + if (pixmap == sna->front && !(sna->flags & SNA_TEAR_FREE) && sna->mode.front_active) { DBG(("%s: no, front buffer, requires flipping\n", __FUNCTION__)); return false;