1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

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.
This commit is contained in:
Philip Langdale 2019-08-18 10:11:02 -07:00 committed by sfan5
parent 80552ab28e
commit b539eb222b

View File

@ -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;