diff options
author | Philip Langdale <philipl@overt.org> | 2019-09-15 17:49:13 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2019-09-15 17:51:47 -0700 |
commit | 237f5fa1b7302d61466991d109179f86ce00b8bb (patch) | |
tree | 91cca425a57e18083ef69b386d1f1783a0b36186 /video/out/hwdec/hwdec_cuda_vk.c | |
parent | 0abe34ed21023b83c7311d85ea317f3af7b5b89c (diff) | |
download | mpv-237f5fa1b7302d61466991d109179f86ce00b8bb.tar.bz2 mpv-237f5fa1b7302d61466991d109179f86ce00b8bb.tar.xz |
vo_gpu: hwdec_cuda: Improve interop selection mechanism
This change updates the interop selection to match what I did for
VAAPI, by iterating through an array of init functions until one
of them works.
Diffstat (limited to 'video/out/hwdec/hwdec_cuda_vk.c')
-rw-r--r-- | video/out/hwdec/hwdec_cuda_vk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/hwdec/hwdec_cuda_vk.c b/video/out/hwdec/hwdec_cuda_vk.c index ad51d15b4e..70a0accf42 100644 --- a/video/out/hwdec/hwdec_cuda_vk.c +++ b/video/out/hwdec/hwdec_cuda_vk.c @@ -292,8 +292,8 @@ bool cuda_vk_init(const struct ra_hwdec *hw) { return false; } } else { - // This is not an error. - return true; + // This is not a Vulkan RA. + return false; } if (!cu->cuImportExternalMemory) { |