[PATCH 2/3] present: Don't abandon presents which are already queued for flip
Keith Packard
keithp at keithp.com
Fri Dec 13 23:59:28 PST 2013
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 at keithp.com>
---
present/present.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/present/present.c b/present/present.c
index 4c0d63b..3caa8b7 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;
--
1.8.4.4
More information about the xorg-devel
mailing list