[PATCH xserver v2 11/22] present: Add flip_idler vblank property

Roman Gilg subdiff at gmail.com
Wed Feb 28 16:36:53 UTC 2018


Introduce vblank property for flip modes, that demand explicite
allowance by the driver for vblanks to become idle.

Signed-off-by: Roman Gilg <subdiff at 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 a3e59ac..4685040 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



More information about the xorg-devel mailing list