diff options
Diffstat (limited to 'src/sna/sna_dri2.c')
-rw-r--r-- | src/sna/sna_dri2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 0b343cec..be5d8141 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -1560,11 +1560,13 @@ can_flip(struct sna * sna, if (draw->type == DRAWABLE_PIXMAP) return false; - if (!sna->scrn->vtSema) { - DBG(("%s: no, not attached to VT\n", __FUNCTION__)); + if (!sna->mode.front_active) { + DBG(("%s: no, active CRTC\n", __FUNCTION__)); return false; } + assert(sna->scrn->vtSema); + if ((sna->flags & (SNA_HAS_FLIP | SNA_HAS_ASYNC_FLIP)) == 0) { DBG(("%s: no, pageflips disabled\n", __FUNCTION__)); return false; |