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>
This commit is contained in:
Keith Packard 2013-12-12 14:52:35 -08:00
parent ca3a5b2a8f
commit e487babd52

View File

@ -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;