diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2023-12-22 21:44:24 -0500 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-01-06 23:46:12 +0100 |
commit | 41259db9523bede8c656c7a8664484e0e4befa02 (patch) | |
tree | 18750dfe5379115b676ba0a60338822f1f37a327 /video/out/gpu_next/context.c | |
parent | f0bcbdcf764b2bf477c301a05c716d43e92e44fb (diff) | |
download | mpv-41259db9523bede8c656c7a8664484e0e4befa02.tar.bz2 mpv-41259db9523bede8c656c7a8664484e0e4befa02.tar.xz |
vo_gpu_next: respect d3d11 swapchain output format preference
Currently, libplacebo always tries to reconfigure the d3d11 swapchain
to a 10-bit output format because disable_10bit_sdr isn't set to true,
even when an 8-bit format is explicitly requested via
--d3d11-output-format.
Fix this by passing the requested output format preference to libplacebo.
Document that this option may be ignored.
Diffstat (limited to 'video/out/gpu_next/context.c')
-rw-r--r-- | video/out/gpu_next/context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gpu_next/context.c b/video/out/gpu_next/context.c index 2887cff938..75d3a47056 100644 --- a/video/out/gpu_next/context.c +++ b/video/out/gpu_next/context.c @@ -88,6 +88,7 @@ static bool d3d11_pl_init(struct vo *vo, struct gpu_ctx *ctx, ctx->swapchain = pl_d3d11_create_swapchain(d3d11, pl_d3d11_swapchain_params( .swapchain = swapchain, + .disable_10bit_sdr = ra_d3d11_ctx_prefer_8bit_output_format(ctx->ra_ctx), ) ); if (!ctx->swapchain) { |