summaryrefslogtreecommitdiff
path: root/libavfilter/vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2020-05-25 15:37:17 +0100
committerLynne <dev@lynne.ee>2020-05-26 10:52:11 +0100
commitc0344cbfb0a11bf76860a660c3662cf469449e24 (patch)
tree01a7502c7bee4be9f432a482a63f50dda75113a8 /libavfilter/vulkan.c
parentfb49d5c0b18c7cdb2d6c324c3d92b5aaebd74ef6 (diff)
downloadffmpeg-c0344cbfb0a11bf76860a660c3662cf469449e24.tar.gz
lavfi/vulkan: fix queue counts and set indices
Diffstat (limited to 'libavfilter/vulkan.c')
-rw-r--r--libavfilter/vulkan.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavfilter/vulkan.c b/libavfilter/vulkan.c
index c3badaee29..0ac5711182 100644
--- a/libavfilter/vulkan.c
+++ b/libavfilter/vulkan.c
@@ -1163,7 +1163,7 @@ void ff_vk_update_descriptor_set(AVFilterContext *avctx, VulkanPipeline *pl,
VulkanFilterContext *s = avctx->priv;
vkUpdateDescriptorSetWithTemplate(s->hwctx->act_dev,
- pl->desc_set[set_id * s->cur_queue_idx],
+ pl->desc_set[s->cur_queue_idx * pl->desc_layout_num + set_id],
pl->desc_template[set_id],
s);
}
@@ -1182,9 +1182,7 @@ int ff_vk_init_pipeline_layout(AVFilterContext *avctx, VulkanPipeline *pl)
VkResult ret;
VulkanFilterContext *s = avctx->priv;
- int queues_count = 1;
-
- pl->descriptor_sets_num = pl->desc_layout_num * queues_count;
+ pl->descriptor_sets_num = pl->desc_layout_num * s->queue_count;
{ /* Init descriptor set pool */
VkDescriptorPoolCreateInfo pool_create_info = {