summaryrefslogtreecommitdiffstats
path: root/video/out/d3d11/context.c
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2019-04-20 01:28:03 +0300
committerJan Ekström <jeebjp@gmail.com>2019-09-29 19:39:26 +0300
commite6447e2e8913ee9666617464fc3fa0dfeb3dbb66 (patch)
tree1c817f6dd77ad0c2b78bd250a3e1d0b66814b20e /video/out/d3d11/context.c
parent81639062997af9329de4aae8005735c1129e2fcd (diff)
downloadmpv-e6447e2e8913ee9666617464fc3fa0dfeb3dbb66.tar.bz2
mpv-e6447e2e8913ee9666617464fc3fa0dfeb3dbb66.tar.xz
vo_gpu/d3d11: add an option for the adapter name
Set it from the adapter name in the d3d11 options.
Diffstat (limited to 'video/out/d3d11/context.c')
-rw-r--r--video/out/d3d11/context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/d3d11/context.c b/video/out/d3d11/context.c
index aa11f46d59..8359f7ffd2 100644
--- a/video/out/d3d11/context.c
+++ b/video/out/d3d11/context.c
@@ -314,6 +314,7 @@ static bool d3d11_init(struct ra_ctx *ctx)
.force_warp = p->opts->warp == 1,
.max_feature_level = p->opts->feature_level,
.max_frame_latency = ctx->vo->opts->swapchain_depth,
+ .adapter_name = p->opts->adapter_name,
};
if (!mp_d3d11_create_present_device(ctx->log, &dopts, &p->device))
goto error;