[PATCH] present: Fix missed notify MSC computation

Mario Kleiner mario.kleiner.de at gmail.com
Fri May 8 18:36:16 PDT 2015


On 02/16/2015 10:49 AM, Chris Wilson wrote:
> 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 at chris-wilson.co.uk>
> ---
>   present/present.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/present/present.c b/present/present.c
> index 1dddcc0..9a283d4 100644
> --- a/present/present.c
> +++ b/present/present.c
> @@ -961,7 +961,7 @@ present_notify_msc(WindowPtr window,
>                             0, 0,
>                             NULL,
>                             NULL, NULL,
> -                          PresentOptionAsync,
> +                          divisor == 0 ? PresentOptionAsync : 0,
>                             target_msc, divisor, remainder, NULL, 0);
>   }
>
>

Reviewed-by: Mario Kleiner <mario.kleiner.de at gmail.com>

-mario


More information about the xorg-devel mailing list