summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-02-16 09:49:18 +0000
committerAdam Jackson <ajax@redhat.com>2015-10-21 15:13:41 -0400
commit413cb2ff1d754b5f19d77ff19cddf40793989c03 (patch)
treed5ed67fed2b40858db70d8831c7700a2d0191c05
parent702c0a247f5523b43652befaf6be548ddbbe9dee (diff)
present: Fix missed notify MSC computation
Only treat divisor==0 as async to immediately report the actual vblank. If the user species a non-zero divisor, we should compute the missed vblank properly or else we report too early. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mario Kleiner <mario.kleiner.de@gmail.com>
-rw-r--r--present/present.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/present/present.c b/present/present.c
index 7ddffbd28..beb4ff03a 100644
--- a/present/present.c
+++ b/present/present.c
@@ -933,7 +933,7 @@ present_notify_msc(WindowPtr window,
0, 0,
NULL,
NULL, NULL,
- PresentOptionAsync,
+ divisor == 0 ? PresentOptionAsync : 0,
target_msc, divisor, remainder, NULL, 0);
}