summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan/context.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2021-10-04 06:18:55 +0200
committerNiklas Haas <github-daiK1o@haasn.dev>2021-10-04 12:09:58 +0200
commit275c00974e51e87db76f975234ae1c9b2c413292 (patch)
tree2a291e8568c23779ba990ba77947914e84ed7b9c /video/out/vulkan/context.c
parent48e8cb6a8994eff198543bd576935054d4ac827c (diff)
downloadmpv-275c00974e51e87db76f975234ae1c9b2c413292.tar.bz2
mpv-275c00974e51e87db76f975234ae1c9b2c413292.tar.xz
vo_gpu: libplacebo: drop conditional code paths for old versions
No longer needed with the bump to v3.104.
Diffstat (limited to 'video/out/vulkan/context.c')
-rw-r--r--video/out/vulkan/context.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c
index efc62a2552..7c9f2f6151 100644
--- a/video/out/vulkan/context.c
+++ b/video/out/vulkan/context.c
@@ -172,9 +172,7 @@ bool ra_vk_ctx_init(struct ra_ctx *ctx, struct mpvk_ctx *vk,
.async_compute = p->opts->async_compute,
.queue_count = p->opts->queue_count,
.device_name = p->opts->device,
-#if PL_API_VER >= 24
.disable_events = p->opts->disable_events,
-#endif
});
if (!vk->vulkan)
goto error;
@@ -189,11 +187,9 @@ bool ra_vk_ctx_init(struct ra_ctx *ctx, struct mpvk_ctx *vk,
.surface = vk->surface,
.present_mode = preferred_mode,
.swapchain_depth = ctx->vo->opts->swapchain_depth,
-#if PL_API_VER >= 29
// mpv already handles resize events, so gracefully allow suboptimal
// swapchains to exist in order to make resizing even smoother
.allow_suboptimal = true,
-#endif
};
if (p->opts->swap_mode >= 0) // user override