Opened 16 months ago

#9354 new defect

Vulkan filter cannot work on nvidia platform

Reported by: wenbin,chen Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: vulkan Nvidia
Cc: wenbin,chen Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

ffmpeg -v verbose -init_hw_device vulkan=vul -filter_hw_device vul -i input1080p.264 -vf "hwupload=extra_hw_frames=16,scale_vulkan=1920:1080,hwdownload,format=yuv420p" -f rawvideo output.yuv

built on ffmpeg master
GPU: 2080Ti

This command reports a segmentation fault at https://github.com/FFmpeg/FFmpeg/blob/1f58503013720700a5adfd72c708e6275aefc165/libavfilter/vulkan.c#L1217

I think the problem is that when queue_count is greater than 1, pl->descriptor_sets_num will be greater than pl->desc_layout and vkAllocateDescriptorSets will cause error.

Change History (0)

Note: See TracTickets for help on using tickets.