From: Dennis Mungai <dmngaie@gmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: Wenbin Chen <wenbin.chen@intel.com>
Subject: Re: [FFmpeg-devel] [V2 01/10] libavfilter/vulkan: Fix problem when device have queue_count greater than 1
Date: Sat, 19 Nov 2022 23:47:43 +0300
Message-ID: <CAKKYfmGwH0MaVw8rUWR5xoO1i0N3wtADAdKt=qvQmWqcgUg1BA@mail.gmail.com> (raw)
In-Reply-To: <20210831072430.303090-1-wenbin.chen@intel.com>
On Tue, 31 Aug 2021 at 10:26, Wenbin Chen <wenbin.chen@intel.com> wrote:
> If the descriptorSetCount is greater than the number of setLayouts,
> vkAllocateDescriptorSets will report error. Now fix it.
>
> Now the following command can run on the device that has queue_count
> greater
> than one:
> ffmpeg -v verbose -init_hw_device vulkan=vul:0 -filter_hw_device vul
> -i input1080p.264 -vf "hwupload=extra_hw_frames=16,scale_vulkan=1920:1080,
> hwdownload,format=yuv420p" -f rawvideo output.yuv
>
> Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
> ---
> libavfilter/vulkan.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavfilter/vulkan.c b/libavfilter/vulkan.c
> index 337c8d7d5a..e5b070b3e6 100644
> --- a/libavfilter/vulkan.c
> +++ b/libavfilter/vulkan.c
> @@ -1160,7 +1160,7 @@ void ff_vk_update_descriptor_set(AVFilterContext
> *avctx, VulkanPipeline *pl,
> VulkanFilterContext *s = avctx->priv;
>
> vkUpdateDescriptorSetWithTemplate(s->hwctx->act_dev,
> - pl->desc_set[s->cur_queue_idx *
> pl->desc_layout_num + set_id],
> + pl->desc_set[set_id],
> pl->desc_template[set_id],
> s);
> }
> @@ -1179,7 +1179,7 @@ int ff_vk_init_pipeline_layout(AVFilterContext
> *avctx, VulkanPipeline *pl)
> VkResult ret;
> VulkanFilterContext *s = avctx->priv;
>
> - pl->descriptor_sets_num = pl->desc_layout_num * s->queue_count;
> + pl->descriptor_sets_num = pl->desc_layout_num;
>
> { /* Init descriptor set pool */
> VkDescriptorPoolCreateInfo pool_create_info = {
> --
> 2.25.1
>
Hello there,
Was this ever merged? I have an issue mentioned in ticket #8962, see
https://trac.ffmpeg.org/ticket/8962 and this thread on Reddit
https://www.reddit.com/r/ffmpeg/comments/jn5skj/comment/gazmt8b/?utm_source=share&utm_medium=web2x&context=3
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
parent reply other threads:[~2022-11-19 20:48 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20210831072430.303090-1-wenbin.chen@intel.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKKYfmGwH0MaVw8rUWR5xoO1i0N3wtADAdKt=qvQmWqcgUg1BA@mail.gmail.com' \
--to=dmngaie@gmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
--cc=wenbin.chen@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git