[Intel-gfx] vsync + vaapi question

Lukas Hejtmanek xhejtman at ics.muni.cz
Thu Dec 24 01:44:46 PST 2015


On Wed, Dec 23, 2015 at 01:38:26PM +0000, Chris Wilson wrote:
> Try (libva):

seems to be much better. I got one lockup though but it may be unrelated.
Thanks, hope you push it into mainstream.
 
> diff --git a/va/x11/dri2_util.c b/va/x11/dri2_util.c
> index d076fb3..9ff5e95 100644
> --- a/va/x11/dri2_util.c
> +++ b/va/x11/dri2_util.c
> @@ -95,8 +95,9 @@ dri2SwapBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable)
>      if (dri2_drawable->has_backbuffer) {
>          if (gsDRI2SwapAvailable) {
>              CARD64 ret;
> -            VA_DRI2SwapBuffers(ctx->native_dpy, dri_drawable->x_drawable, 0, 0,
> -                               0, &ret);
> +            VA_DRI2SwapBuffers(ctx->native_dpy, dri_drawable->x_drawable,
> +                              0, 1, 0,
> +                              &ret);
>          } else {
>              xrect.x = 0;
>              xrect.y = 0;
> 
> -- 
> Chris Wilson, Intel Open Source Technology Centre

-- 
Lukáš Hejtmánek


More information about the Intel-gfx mailing list