Commit 413cb2ff authored by Chris Wilson's avatar Chris Wilson Committed by Adam Jackson

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: 's avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: 's avatarMario Kleiner <mario.kleiner.de@gmail.com>
parent 702c0a24
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment