From 4005cda614c439db560ee171c223b62bcd2b4936 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Mon, 26 Nov 2018 18:04:08 -0800 Subject: 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. --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 09eb5da529..29cc0ef4e8 100644 --- a/wscript +++ b/wscript @@ -852,7 +852,7 @@ hwaccel_features = [ }, { 'name': 'ffnvcodec', 'desc': 'CUDA Headers and dynamic loader', - 'func': check_pkg_config('ffnvcodec >= 8.2.15.3'), + 'func': check_pkg_config('ffnvcodec >= 8.2.15.7'), }, { 'name': '--cuda-hwaccel', 'desc': 'CUDA hwaccel', -- cgit v1.2.3