[PATCH xserver v3 12/24] present: Add flip_idler vblank property

Roman Gilg subdiff at gmail.com
Tue Mar 13 15:00:45 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 3fba10d..5e1bc3c 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 */
     PresentFlipReason   reason;         /* reason for which flip is not possible */
diff --git a/present/present_vblank.c b/present/present_vblank.c
index 6265dff..fac639b 100644
--- a/present/present_vblank.c
+++ b/present/present_vblank.c
@@ -106,6 +106,7 @@ present_vblank_create(WindowPtr window,
     vblank->notifies = notifies;
     vblank->num_notifies = num_notifies;
     vblank->has_suboptimal = (options & PresentOptionSuboptimal);
+    vblank->flip_idler = FALSE;
 
     if (pixmap != NULL &&
         !(options & PresentOptionCopy) &&
-- 
2.7.4



More information about the xorg-devel mailing list