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_scale_vulkan.c | |
parent | dfc61800a26747dc91bf00b0d841fc88a5d7473d (diff) | |
download | ffmpeg-6bf9a6539e3db94ee88dd2a8e4816fadf10a4970.tar.gz |
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_scale_vulkan.c')
-rw-r--r-- | libavfilter/vf_scale_vulkan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_scale_vulkan.c b/libavfilter/vf_scale_vulkan.c index 2b83170029..3dd6e3ff0b 100644 --- a/libavfilter/vf_scale_vulkan.c +++ b/libavfilter/vf_scale_vulkan.c @@ -117,8 +117,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in) int crop_h = in->height - (in->crop_top + in->crop_bottom); 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; switch (s->scaler) { case F_NEAREST: |