summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan/utils.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2018-10-19 21:48:15 -0700
committersfan5 <sfan5@live.de>2018-10-22 21:35:48 +0200
commit621389134afd3026b7e3508dba070442c4eeefa0 (patch)
treee4ff5e5aa1e95032ba30dbf6243a52ef81200608 /video/out/vulkan/utils.h
parenta782197d216b2343abe04045b9bb3076864aca80 (diff)
downloadmpv-621389134afd3026b7e3508dba070442c4eeefa0.tar.bz2
mpv-621389134afd3026b7e3508dba070442c4eeefa0.tar.xz
vo_gpu: vulkan: Add a function to get the device UUID
We need this to do device matching for the cuda interop.
Diffstat (limited to 'video/out/vulkan/utils.h')
-rw-r--r--video/out/vulkan/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vulkan/utils.h b/video/out/vulkan/utils.h
index 97d1c24489..9af59e4b50 100644
--- a/video/out/vulkan/utils.h
+++ b/video/out/vulkan/utils.h
@@ -56,6 +56,9 @@ bool mpvk_surface_init(struct vo *vo, struct mpvk_ctx *vk);
// sw: also allow software/virtual devices
bool mpvk_find_phys_device(struct mpvk_ctx *vk, const char *name, bool sw);
+// Get the UUID for the selected physical device
+bool mpvk_get_phys_device_uuid(struct mpvk_ctx *vk, uint8_t uuid_out[VK_UUID_SIZE]);
+
// Pick a suitable surface format that's supported by this physical device.
bool mpvk_pick_surface_format(struct mpvk_ctx *vk);