summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vulkan/context.c')
-rw-r--r--video/out/vulkan/context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c
index 000afe211e..4d94c6fb77 100644
--- a/video/out/vulkan/context.c
+++ b/video/out/vulkan/context.c
@@ -27,6 +27,7 @@ struct vulkan_opts {
int queue_count;
int async_transfer;
int async_compute;
+ int disable_events;
};
static int vk_validate_dev(struct mp_log *log, const struct m_option *opt,
@@ -97,6 +98,7 @@ const struct m_sub_options vulkan_conf = {
{"vulkan-queue-count", OPT_INT(queue_count), M_RANGE(1, 8)},
{"vulkan-async-transfer", OPT_FLAG(async_transfer)},
{"vulkan-async-compute", OPT_FLAG(async_compute)},
+ {"vulkan-disable-events", OPT_FLAG(disable_events)},
{0}
},
.size = sizeof(struct vulkan_opts),
@@ -169,6 +171,9 @@ 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;