summaryrefslogtreecommitdiff
path: root/present
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-12 14:52:35 -0800
committerKeith Packard <keithp@keithp.com>2013-12-20 12:28:00 -0800
commite487babd525ef1bd016ec7b283fa08cf9e6c6f4f (patch)
tree6f744e001c30336d6fb45e023b1e9aaf4bb85ff9 /present
parentca3a5b2a8f9f627bbaa9883e16512a21c2a0b81d (diff)
present: Don't abandon presents which are already queued for flip
Presents which are not marked 'queued' and are in the window present list are waiting for the flip event; discarding those won't work very well (it'll end up trashing displayed content for the next frame), so skip over those when looking for duplicate frame presents Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'present')
-rw-r--r--present/present.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/present/present.c b/present/present.c
index 4c0d63baf..3caa8b771 100644
--- a/present/present.c
+++ b/present/present.c
@@ -689,6 +689,9 @@ present_pixmap(WindowPtr window,
if (!vblank->pixmap)
continue;
+ if (!vblank->queued)
+ continue;
+
if (vblank->crtc != target_crtc || vblank->target_msc != target_msc)
continue;