sync: Fix diffgreater comparison

David Weinehall david.weinehall at linux.intel.com
Thu Jan 18 13:12:46 UTC 2018


xsync: Fix diffgreater comparison

While transitioning from CARD64 to int64,
the GreaterThan call was mistakenly transformed into ">=".
Part of this was fixed already in
commit 8060196a3e80a3c0ad2c0abbe459416821cd366c

This patch fixes the remaining issue.

Signed-off-by: David Weinehall <david.weinehall at linux.intel.com>

diff --git a/Xext/sync.c b/Xext/sync.c
index 37d41f22410d..8f22a865bb35 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -660,7 +660,7 @@ SyncAwaitTriggerFired(SyncTrigger * pTrigger)
              */
             if (overflow)
                 continue;
-            diffgreater = diff >= pAwait->event_threshold;
+            diffgreater = diff > pAwait->event_threshold;
             diffequal = diff == pAwait->event_threshold;
 
             /* "If the test-type is PositiveTransition or


More information about the xorg-devel mailing list