diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-21 19:51:47 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-21 19:52:48 +0100 |
commit | 376037e6336dfc3b32c51b774ab8a80f64390e02 (patch) | |
tree | afdf34718e02a65368a19346234aeb1b9cdf8498 | |
parent | 061785b1688de8dbf7ce9a423d16fb6d52518dc7 (diff) |
sna: Skip present unflip if the output is rotated
With a rotated output and shadow buffers, we never perform the flip in
the first place and so can ignore the unflip request as well.
Reported-by: Mihail Kasadjikov <hamer.mk@gmail.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=84105
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_present.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_present.c b/src/sna/sna_present.c index a1dfc91e..6036fbb4 100644 --- a/src/sna/sna_present.c +++ b/src/sna/sna_present.c @@ -416,7 +416,7 @@ sna_present_unflip(ScreenPtr screen, uint64_t event_id) struct kgem_bo *bo; DBG(("%s(event=%lld)\n", __FUNCTION__, (long long)event_id)); - if (sna->mode.front_active == 0) { + if (sna->mode.front_active == 0 || sna->mode.shadow_active) { const struct ust_msc *swap; DBG(("%s: no CRTC active, perform no-op flip\n", __FUNCTION__)); |