[Mesa-dev] [PATCH] st/vdpau: set correct timeout for fence_finish

Christian König deathsimple at vodafone.de
Tue Oct 8 11:40:39 PDT 2013


Am 08.10.2013 19:13, schrieb Marek Olšák:
> From: Marek Olšák <marek.olsak at amd.com>
>
> The timeout of 0 is equivalent to calling fence_signalled, which is not very
> useful here.

Grigori already attached the same fix to the bug 
https://bugs.freedesktop.org/show_bug.cgi?id=68792.

He's probably already working on the rest of the fixes.

Christian.

> ---
>   src/gallium/state_trackers/vdpau/presentation.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c
> index c9f8ea7..abb2ac4 100644
> --- a/src/gallium/state_trackers/vdpau/presentation.c
> +++ b/src/gallium/state_trackers/vdpau/presentation.c
> @@ -325,7 +325,7 @@ vlVdpPresentationQueueBlockUntilSurfaceIdle(VdpPresentationQueue presentation_qu
>      pipe_mutex_lock(pq->device->mutex);
>      if (surf->fence) {
>         screen = pq->device->vscreen->pscreen;
> -      screen->fence_finish(screen, surf->fence, 0);
> +      screen->fence_finish(screen, surf->fence, PIPE_TIMEOUT_INFINITE);
>      }
>      pipe_mutex_unlock(pq->device->mutex);
>   



More information about the mesa-dev mailing list