diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-16 09:49:18 +0000 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-10-26 12:20:55 -0400 |
commit | d9344ef3ea4f3009d61240e0fefcfca40eaa7dca (patch) | |
tree | 2e60054a63f1c1fbbb35e5076b4c09ca6248dae8 | |
parent | 88f22fc5dac502c7d57d0b53defda75b44dab985 (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>
(cherry picked from commit 413cb2ff1d754b5f19d77ff19cddf40793989c03)
-rw-r--r-- | present/present.c | 2 |
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); } |