summaryrefslogtreecommitdiff
path: root/libavfilter/vf_avgblur_vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-11-07 08:16:11 +0100
committerLynne <dev@lynne.ee>2021-11-12 05:23:36 +0100
commit6bf9a6539e3db94ee88dd2a8e4816fadf10a4970 (patch)
treed56025f67ab520d3b9d92ef0a8bc7df5f912a579 /libavfilter/vf_avgblur_vulkan.c
parentdfc61800a26747dc91bf00b0d841fc88a5d7473d (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_avgblur_vulkan.c')
-rw-r--r--libavfilter/vf_avgblur_vulkan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_avgblur_vulkan.c b/libavfilter/vf_avgblur_vulkan.c
index 93a7f0d62a..deb2d0f186 100644
--- a/libavfilter/vf_avgblur_vulkan.c
+++ b/libavfilter/vf_avgblur_vulkan.c
@@ -99,8 +99,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
return AVERROR_EXTERNAL;
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 shader for the horizontal pass */
desc_i[0].updater = s->input_images;