From b539eb222bbc6099e6661e6b1fe4dcb2d775342a Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sun, 18 Aug 2019 10:11:02 -0700 Subject: vo/gpu: vulkan: Pass the device name option through to libplacebo We collect a 'vulkan-device' option today but then don't actually pass it on, so it's useless. Once that's fixed, it can be used to select a specific vulkan device by name. Tested with the new nvidia offload feature to select between the nvidia and intel GPUs. --- video/out/vulkan/context.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out') diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c index c05a5ac209..f3db02f5cb 100644 --- a/video/out/vulkan/context.c +++ b/video/out/vulkan/context.c @@ -165,6 +165,7 @@ bool ra_vk_ctx_init(struct ra_ctx *ctx, struct mpvk_ctx *vk, .async_transfer = p->opts->async_transfer, .async_compute = p->opts->async_compute, .queue_count = p->opts->queue_count, + .device_name = p->opts->device, }); if (!vk->vulkan) goto error; -- cgit v1.2.3