Re: vsync + vaapi question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux