diff options
author | Lynne <dev@lynne.ee> | 2021-11-07 08:16:11 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-11-12 05:23:36 +0100 |
commit | 6bf9a6539e3db94ee88dd2a8e4816fadf10a4970 (patch) | |
tree | d56025f67ab520d3b9d92ef0a8bc7df5f912a579 /libavfilter/vf_overlay_vulkan.c | |
parent | dfc61800a26747dc91bf00b0d841fc88a5d7473d (diff) |
vulkan: add support for encode and decode queues and refactor queue code
This simplifies and makes queue family picking simpler and more robust.
The requirements on the device context are relaxed. They made no sense
in the first place.
The video encode/decode extension is still in beta, at least on paper,
but I really doubt they'd change needing a separate queue family.
Diffstat (limited to 'libavfilter/vf_overlay_vulkan.c')
-rw-r--r-- | libavfilter/vf_overlay_vulkan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_overlay_vulkan.c b/libavfilter/vf_overlay_vulkan.c index 4b49878b85..1b809f836c 100644 --- a/libavfilter/vf_overlay_vulkan.c +++ b/libavfilter/vf_overlay_vulkan.c @@ -89,8 +89,7 @@ static av_cold int init_filter(AVFilterContext *ctx) return AVERROR(ENOMEM); s->vkctx.queue_family_idx = s->vkctx.hwctx->queue_family_comp_index; - s->vkctx.queue_count = GET_QUEUE_COUNT(s->vkctx.hwctx, 0, 1, 0); - s->vkctx.cur_queue_idx = av_get_random_seed() % s->vkctx.queue_count; + s->vkctx.queue_count = s->vkctx.hwctx->nb_comp_queues; { /* Create the shader */ const int planes = av_pix_fmt_count_planes(s->vkctx.output_format); |