From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id EC55E445E9 for ; Sat, 19 Nov 2022 20:48:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F077F68B049; Sat, 19 Nov 2022 22:48:29 +0200 (EET) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E796F68AF0D for ; Sat, 19 Nov 2022 22:48:22 +0200 (EET) Received: by mail-wm1-f52.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso8401917wmb.0 for ; Sat, 19 Nov 2022 12:48:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1XNNG4/O7O/uv8GsSktgTM+GlwMhBogArOU6VEHP17Y=; b=OjtBw8bW6roV5k59RTTl4DwLMxfeP9jLAJcmSljm52VqjD+XoV9pI6pvxAoG6zfoQK 040ulFnHJMAk+PMArJTUEwS6pspsUIgYKdYrN96Ac/JxKef9KdA2DKA9bF3X1bTZxcue MxfpxGR/FvhfjjvO+TBnh79W/rmMBrCRlCL4SSry8A+pE2ZhU6Xd91+84KnvOoCin/zG C7m6Imo8I5ThD1JX5VOI+F5BlNUXmu1WB53BMAWh1mHhszB/CL48k1vC9jXbC/l2Rm0X s7FHm/AhsiYmPlWyYc3Kb2cIDtCzDU9ZimOEeUZni5Sgh/oP7tXO+VtIgwoERYQFzSYT vd/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1XNNG4/O7O/uv8GsSktgTM+GlwMhBogArOU6VEHP17Y=; b=uwEIEagG9Isd9vTITkyy3FRY7aBRdISlmEaNWFeKJa5jDylD3AjlJPOKiVaVx8mqss 3p+mwn9h9/GO5ZlKAOwcCoIxRj6nRO5jxkMZM7gVRkldP0KhGLSg31+RLd4CEaWd7OjH 1DuDXbOWsd/E/BGO1LJ0LIv1TOk/VwCt0Srr670/RM+yS2a7vTExDSfZZotYhtAcgHdA Dc6erKNTZi7aVWpVr59xJZf+jOnZKOiYJ8LMr2GHJamFdBpkTNxYFe0xc4BNum3RXIg3 mPFDlg/albViC4NYiZ9/668LO5JS9ymrhy+gcp+gGklOvt2jQzF5ficc5zCazz8kcTXJ L8GQ== X-Gm-Message-State: ANoB5pkA/MgT83xGMJSSGQojBvykcHSxWnUXcf4sGy+w689BhsNcITfH nZr6gIJaZYBmqP3nyvPZwzG7U6cQUQ6qjf/2aCcZGUgikv/ahA== X-Google-Smtp-Source: AA0mqf7M5O6dM9rB5zT3WA/4fUk933xOneK3/fHa6MdnpAGDII+nAp9endPUuTbmFiGyCytaetzk0IA7kLoDANRgd7U= X-Received: by 2002:a7b:ca55:0:b0:3cf:84e9:e705 with SMTP id m21-20020a7bca55000000b003cf84e9e705mr1298596wml.28.1668890901090; Sat, 19 Nov 2022 12:48:21 -0800 (PST) MIME-Version: 1.0 References: <20210831072430.303090-1-wenbin.chen@intel.com> In-Reply-To: <20210831072430.303090-1-wenbin.chen@intel.com> From: Dennis Mungai Date: Sat, 19 Nov 2022 23:47:43 +0300 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] [V2 01/10] libavfilter/vulkan: Fix problem when device have queue_count greater than 1 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Wenbin Chen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Tue, 31 Aug 2021 at 10:26, Wenbin Chen 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 > --- > 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".