Unverified Commit c0344cbf authored by Lynne's avatar Lynne

lavfi/vulkan: fix queue counts and set indices

parent fb49d5c0
...@@ -1163,7 +1163,7 @@ void ff_vk_update_descriptor_set(AVFilterContext *avctx, VulkanPipeline *pl, ...@@ -1163,7 +1163,7 @@ void ff_vk_update_descriptor_set(AVFilterContext *avctx, VulkanPipeline *pl,
VulkanFilterContext *s = avctx->priv; VulkanFilterContext *s = avctx->priv;
vkUpdateDescriptorSetWithTemplate(s->hwctx->act_dev, 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], pl->desc_template[set_id],
s); s);
} }
...@@ -1182,9 +1182,7 @@ int ff_vk_init_pipeline_layout(AVFilterContext *avctx, VulkanPipeline *pl) ...@@ -1182,9 +1182,7 @@ int ff_vk_init_pipeline_layout(AVFilterContext *avctx, VulkanPipeline *pl)
VkResult ret; VkResult ret;
VulkanFilterContext *s = avctx->priv; VulkanFilterContext *s = avctx->priv;
int queues_count = 1; pl->descriptor_sets_num = pl->desc_layout_num * s->queue_count;
pl->descriptor_sets_num = pl->desc_layout_num * queues_count;
{ /* Init descriptor set pool */ { /* Init descriptor set pool */
VkDescriptorPoolCreateInfo pool_create_info = { VkDescriptorPoolCreateInfo pool_create_info = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment