Introduce vblank property for flip modes, that demand explicite allowance by the driver for vblanks to become idle.
Signed-off-by: Roman Gilg <subd...@gmail.com> --- present/present_priv.h | 1 + present/present_vblank.c | 1 + 2 files changed, 2 insertions(+) diff --git a/present/present_priv.h b/present/present_priv.h index a071941..6a02c74 100644 --- a/present/present_priv.h +++ b/present/present_priv.h @@ -79,6 +79,7 @@ struct present_vblank { Bool requeue; /* on queue, but target_msc has changed */ Bool flip; /* planning on using flip */ Bool flip_ready; /* wants to flip, but waiting for previous flip or unflip */ + Bool flip_idler; /* driver explicitly permitted idling */ Bool sync_flip; /* do flip synchronous to vblank */ Bool abort_flip; /* aborting this flip */ }; diff --git a/present/present_vblank.c b/present/present_vblank.c index 0f1c3e6..00bb65c 100644 --- a/present/present_vblank.c +++ b/present/present_vblank.c @@ -104,6 +104,7 @@ present_vblank_create(WindowPtr window, vblank->msc_offset = window_priv->msc_offset; vblank->notifies = notifies; vblank->num_notifies = num_notifies; + vblank->flip_idler = FALSE; if (pixmap != NULL && !(options & PresentOptionCopy) && -- 2.7.4 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel