[RFC presentproto v2 02/12] Add capability and option for IdleFence

Louis-Francis Ratté-Boulianne lfrb at collabora.com
Wed Sep 27 05:19:53 UTC 2017


If the server has that capability, and the client is using this
option, the idle fence given to PresentPixamp can be modified to
point to an out-fence created by the driver.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
---
 presenttokens.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/presenttokens.h b/presenttokens.h
index fa92f89..7aff9cc 100644
--- a/presenttokens.h
+++ b/presenttokens.h
@@ -44,10 +44,12 @@
 #define PresentOptionAsync              (1 << 0)
 #define PresentOptionCopy               (1 << 1)
 #define PresentOptionUST                (1 << 2)
+#define PresentOptionIdleFence          (1 << 3)
 
 #define PresentAllOptions       (PresentOptionAsync | \
                                  PresentOptionCopy | \
-                                 PresentOptionUST)
+                                 PresentOptionUST | \
+                                 PresentOptionIdleFence)
 
 /* Present capabilities */
 
@@ -55,10 +57,12 @@
 #define PresentCapabilityAsync          1
 #define PresentCapabilityFence          2
 #define PresentCapabilityUST            4
+#define PresentCapabilityIdleFence      8
 
 #define PresentAllCapabilities  (PresentCapabilityAsync | \
                                  PresentCapabilityFence | \
-                                 PresentCapabilityUST)
+                                 PresentCapabilityUST | \
+                                 PresentCapabilityIdleFence)
 
 /* Events */
 #define PresentConfigureNotify	0
-- 
2.13.0



More information about the xorg-devel mailing list