summaryrefslogtreecommitdiffstats
path: root/video/out/hwdec/hwdec_cuda.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-09-15 17:49:13 -0700
committerPhilip Langdale <philipl@overt.org>2019-09-15 17:51:47 -0700
commit237f5fa1b7302d61466991d109179f86ce00b8bb (patch)
tree91cca425a57e18083ef69b386d1f1783a0b36186 /video/out/hwdec/hwdec_cuda.h
parent0abe34ed21023b83c7311d85ea317f3af7b5b89c (diff)
downloadmpv-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.h')
-rw-r--r--video/out/hwdec/hwdec_cuda.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/hwdec/hwdec_cuda.h b/video/out/hwdec/hwdec_cuda.h
index 95a6b9c34c..fc0b3e97f8 100644
--- a/video/out/hwdec/hwdec_cuda.h
+++ b/video/out/hwdec/hwdec_cuda.h
@@ -50,6 +50,8 @@ struct cuda_mapper_priv {
void *ext[4];
};
+typedef bool (*cuda_interop_init)(const struct ra_hwdec *hw);
+
bool cuda_gl_init(const struct ra_hwdec *hw);
bool cuda_vk_init(const struct ra_hwdec *hw);