diff options
author | Philip Langdale <philipl@overt.org> | 2018-11-26 18:04:08 -0800 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-04-21 23:55:22 +0300 |
commit | 4005cda614c439db560ee171c223b62bcd2b4936 (patch) | |
tree | 83d49b96519941fcf8a2d9afdb1d4446b850ff25 /player/audio.c | |
parent | ffb8ffdd5599822c8bb0b6993eca96babab3d279 (diff) | |
download | mpv-4005cda614c439db560ee171c223b62bcd2b4936.tar.bz2 mpv-4005cda614c439db560ee171c223b62bcd2b4936.tar.xz |
vo_gpu: hwdec_cuda: Implement interop for placebo
This change updates the vulkan interop code to work with the
libplacebo based ra_vk, but also introduces direct VkImage
sharing to avoid the use of the intermediate buffer.
It is also necessary and desirable to introduce explicit
semaphore bsed synchronisation for operations on the shared
images.
Synchronisation means we can safely reuse the same VkImage for every
mapped frame, by ensuring the frame is copied to the VkImage before
mapping the next frame.
This functionality requires a 417.xx or newer nvidia driver, due to
bugs in the VkImage interop in the earlier 411 and 415 drivers.
It's definitely worth the effort, as the raw throughput is about
twice that of implementation using an intermediate buffer.
Diffstat (limited to 'player/audio.c')
0 files changed, 0 insertions, 0 deletions