diff options
author | Philip Langdale <philipl@overt.org> | 2019-08-18 10:11:02 -0700 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-08-24 18:38:27 +0200 |
commit | b539eb222bbc6099e6661e6b1fe4dcb2d775342a (patch) | |
tree | 72d7967a476d6725f90e1b1bc47b0d2e756710c9 /video/out/vulkan | |
parent | 80552ab28ed7fb2edca995af81dd143422e6b7a3 (diff) | |
download | mpv-b539eb222bbc6099e6661e6b1fe4dcb2d775342a.tar.bz2 mpv-b539eb222bbc6099e6661e6b1fe4dcb2d775342a.tar.xz |
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.
Diffstat (limited to 'video/out/vulkan')
-rw-r--r-- | video/out/vulkan/context.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |