aboutsummaryrefslogtreecommitdiffstats
path: root/tools/source2c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-07-19 00:10:06 +0200
committerLynne <dev@lynne.ee>2024-08-11 05:13:11 +0200
commitaea4d4b423c62aecf326ef3ae1578710faa3eca6 (patch)
tree4e6518a5449d95808069363f0f632fd12406576b /tools/source2c
parent81c5d4ea0e5e90bc030d31ab9e7d0cf090988b96 (diff)
downloadffmpeg-aea4d4b423c62aecf326ef3ae1578710faa3eca6.tar.gz
hwcontext_vulkan: rewrite upload/download
This commit was long overdue. The old transfer dubiously tried to merge as much code as possible, and had very little in the way of optimizations, apart from basic host-mapping. The new code uses buffer pools for any temporary bufflers, and handles falling back to buffer-based uploads if host-mapping fails. Roundtrip performance difference: ffmpeg -init_hw_device "vulkan=vk:0,debug=0,disable_multiplane=1" -f lavfi \ -i color=red:s=3840x2160 -vf hwupload,hwdownload,format=yuv420p -f null - 7900XTX: Before: 224fps After: 502fps Ada, with proprietary drivers: Before: 29fps After: 54fps Alder Lake: Before: 85fps After: 108fps With the host-mapping codepath disabled: Before: 32fps After: 51fps
Diffstat (limited to 'tools/source2c')
0 files changed, 0 insertions, 0 deletions