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

Marek Olšák maraeo at gmail.com
Tue Oct 8 11:48:32 PDT 2013


Ok. I didn't know Grigori had been working on it.

Marek

On Tue, Oct 8, 2013 at 8:40 PM, Christian König <deathsimple at vodafone.de> wrote:
> 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