From dbf0fd7d60fa7b4996a3dd96101abd627768e9df Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Wed, 18 Dec 2019 17:11:36 -0800 Subject: vo_gpu: vulkan: provide a helper to access device name option The VkDisplayKHR context type requires making calls against the physical device before the libplacebo context is initialised. That means we can't simply use the physical device object that libplacebo would create - instead we have to create a separate one, but make sure it's referring to the same physical device. To that end, we need the device name that the user may have requested so we can pass it on. --- video/out/vulkan/context.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/out/vulkan/context.h') diff --git a/video/out/vulkan/context.h b/video/out/vulkan/context.h index 6ae64bb0f5..d85b3fe193 100644 --- a/video/out/vulkan/context.h +++ b/video/out/vulkan/context.h @@ -25,3 +25,6 @@ bool ra_vk_ctx_resize(struct ra_ctx *ctx, int width, int height); // May be called on a ra_ctx of any type. struct mpvk_ctx *ra_vk_ctx_get(struct ra_ctx *ctx); + +// Get the user requested Vulkan device name. +char *ra_vk_ctx_get_device_name(struct ra_ctx *ctx); \ No newline at end of file -- cgit v1.2.3