summaryrefslogtreecommitdiffstats
path: root/video/out/d3d11
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2019-09-28 10:26:23 +0200
committerJan Ekström <jeebjp@gmail.com>2019-09-28 14:10:01 +0300
commit62904203804afb614f4809495f1a1bb6e4006aaa (patch)
treeffeaceaebb78c664c9d183333836594b245ba1e1 /video/out/d3d11
parent9538fb5a7af951e220f26c87c80aaaa2a5cfbc67 (diff)
downloadmpv-62904203804afb614f4809495f1a1bb6e4006aaa.tar.bz2
mpv-62904203804afb614f4809495f1a1bb6e4006aaa.tar.xz
vo: make swapchain-depth option generic for all VOs
In preparation for making vo_drm able to use swapchain-depth
Diffstat (limited to 'video/out/d3d11')
-rw-r--r--video/out/d3d11/context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/d3d11/context.c b/video/out/d3d11/context.c
index f596fb09d4..062fdd2061 100644
--- a/video/out/d3d11/context.c
+++ b/video/out/d3d11/context.c
@@ -310,7 +310,7 @@ static bool d3d11_init(struct ra_ctx *ctx)
.allow_warp = p->opts->warp != 0,
.force_warp = p->opts->warp == 1,
.max_feature_level = p->opts->feature_level,
- .max_frame_latency = ctx->opts.swapchain_depth,
+ .max_frame_latency = ctx->vo->opts->swapchain_depth,
};
if (!mp_d3d11_create_present_device(ctx->log, &dopts, &p->device))
goto error;
@@ -331,7 +331,7 @@ static bool d3d11_init(struct ra_ctx *ctx)
.flip = p->opts->flip,
// Add one frame for the backbuffer and one frame of "slack" to reduce
// contention with the window manager when acquiring the backbuffer
- .length = ctx->opts.swapchain_depth + 2,
+ .length = ctx->vo->opts->swapchain_depth + 2,
.usage = DXGI_USAGE_RENDER_TARGET_OUTPUT,
};
if (!mp_d3d11_create_swapchain(p->device, ctx->log, &scopts, &p->swapchain))