st/vdpau: resolve delayed rendering for GL interop v2
Otherwise OutputSurface interop has funny results sometimes. This fixes interop with the mpv media player. v2 (chk): add proper locking Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
committed by
Christian König
parent
3785fe2715
commit
5580ff818e
@@ -734,5 +734,9 @@ struct pipe_resource *vlVdpOutputSurfaceGallium(VdpOutputSurface surface)
|
||||
if (!vlsurface || !vlsurface->surface)
|
||||
return NULL;
|
||||
|
||||
pipe_mutex_lock(vlsurface->device->mutex);
|
||||
vlVdpResolveDelayedRendering(vlsurface->device, NULL, NULL);
|
||||
pipe_mutex_unlock(vlsurface->device->mutex);
|
||||
|
||||
return vlsurface->surface->texture;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user