[FFmpeg-devel] [V2 03/10] libavfilter/vulkan: Fix the way to use sem

Chen, Wenbin wenbin.chen at intel.com
Wed Sep 1 05:15:40 EEST 2021


> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Lynne
> Sent: Tuesday, August 31, 2021 7:26 PM
> To: FFmpeg development discussions and patches <ffmpeg-
> devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [V2 03/10] libavfilter/vulkan: Fix the way to use
> sem
> 
> 31 Aug 2021, 09:24 by wenbin.chen at intel.com:
> 
> > We chould set waitSem and signalSem differently. Current ffmpeg-vulkan
> > uses the same sem to set waitSem and signalSem and it doesn't work on
> > latest intel-vulkan-driver. The commit:
> > a193060221c4df123e26a562949cae5df3e73cde on mesa causes this
> problem.
> > This commit add code to resets the signalSem. This will reset waitSem
> > too on current ffmpeg-vulkan. Now set waitSem and signalSem separetely.
> >
> > Now the following command can run on the latest mesa on intel platform:
> > ffmpeg -v verbose -init_hw_device vulkan=vul:0,linear_images=1 -
> filter_hw_device vul
> > -i input1080p.264 -vf
> "hwupload=extra_hw_frames=16,scale_vulkan=1920:1080,
> > hwdownload,format=yuv420p" -f rawvideo output.yuv
> >
> > Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>
> >
> 
> Sorry, I'm working on a better way which uses timeline semaphores.
> Would've been nice to get pinged on IRC with what your plans were
> beforehand.

It is good you have a better way to do this. Look forward to your fix. :D

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list