mirror of https://github.com/mpv-player/mpv
vo_gpu: hwdec_vaapi: Synchronise after exporting VA surface
This is documented as required (although we did not do it in the old GL codepath, with no visible problems) and I have seen transient artifacts after seeking which _appear_ to have gone away after introducing this.
This commit is contained in:
parent
69c93b6f0e
commit
639ee55df7
|
@ -423,6 +423,9 @@ static int mapper_map(struct ra_hwdec_mapper *mapper)
|
||||||
p->esh_not_implemented = true;
|
p->esh_not_implemented = true;
|
||||||
goto esh_failed;
|
goto esh_failed;
|
||||||
}
|
}
|
||||||
|
vaSyncSurface(display, va_surface_id(mapper->src));
|
||||||
|
// No need to error out if sync fails, but good to know if it did.
|
||||||
|
CHECK_VA_STATUS(mapper, "vaSyncSurface()");
|
||||||
p->surface_acquired = true;
|
p->surface_acquired = true;
|
||||||
|
|
||||||
#if HAVE_GL
|
#if HAVE_GL
|
||||||
|
|
Loading…
Reference in New Issue