mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-01 04:50:08 +01:00
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:
parent
ca3a5b2a8f
commit
e487babd52
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue