Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Lynne <dev@lynne.ee>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering
Date: Tue, 16 May 2023 16:47:10 +0200 (CEST)
Message-ID: <NV_0sN0--3-9@lynne.ee> (raw)
In-Reply-To: <168424391591.3843.11155559172931732819@lain.khirnov.net>

May 16, 2023, 15:32 by anton@khirnov.net:

> Quoting Lynne (2023-05-11 20:55:40)
>
>> May 11, 2023, 18:04 by anton@khirnov.net:
>>
>> > Quoting Lynne (2023-04-24 17:56:38)
>> >
>> >> From b0c429d0d77d1789b6349bc6b296449ae1f8e9da Mon Sep 17 00:00:00 2001
>> >> From: Lynne <dev@lynne.ee>
>> >> Date: Tue, 15 Mar 2022 23:00:32 +0100
>> >> Subject: [PATCH 26/97] hwcontext_vulkan: support threadsafe queue and frame
>> >>  operations
>> >>
>> >> ---
>> >>  libavutil/hwcontext_vulkan.c | 176 +++++++++++++++++++++++++----------
>> >>  libavutil/hwcontext_vulkan.h |  40 +++++++-
>> >>  2 files changed, 167 insertions(+), 49 deletions(-)
>> >>
>> >> diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
>> >> index 894b4b83f3..b0db59b2d8 100644
>> >> --- a/libavutil/hwcontext_vulkan.c
>> >> +++ b/libavutil/hwcontext_vulkan.c
>> >> @@ -27,6 +27,7 @@
>> >>  #include <dlfcn.h>
>> >>  #endif
>> >> 
>> >> +#include <pthread.h>
>> >>  #include <unistd.h>
>> >> 
>> >>  #include "config.h"
>> >> @@ -92,8 +93,10 @@ typedef struct VulkanDevicePriv {
>> >>  VkPhysicalDeviceVulkan13Features device_features_1_3;
>> >> 
>> >>  /* Queues */
>> >> -    uint32_t qfs[5];
>> >> -    int num_qfs;
>> >> +    pthread_mutex_t **qf_mutex;
>> >> +    int nb_tot_qfs;
>> >> +    uint32_t img_qfs[5];
>> >> +    int nb_img_qfs;
>> >>
>> >
>> > This patch would be so much more readable without random renamings.
>> >
>>
>> They're not random, the meaning of each variable is different
>> to what they meant before.
>> nb_img_qfs is the total number of enabled queue familiesnb_tot_qfs is the total number of queue families listed by the driver
>>
>>
>> >> /* Debug callback */
>> >>  VkDebugUtilsMessengerEXT debug_ctx;
>> >> @@ -127,6 +130,8 @@ typedef struct VulkanFramesPriv {
>> >>  } VulkanFramesPriv;
>> >> 
>> >>  typedef struct AVVkFrameInternal {
>> >> +    pthread_mutex_t update_mutex;
>> >>
>> >
>> > As far as I can see, none of the mutices you're adding here are
>> > ever destroyed.
>> >
>>
>> Fixed.
>>
>
> In your current tree you're only destrying update_mutex, not qf_mutexes.
>
> And not checking thre creation of update_mutex.
>

fixed both
_______________________________________________
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".

  reply	other threads:[~2023-05-16 14:47 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24 15:56 Lynne
2023-04-28 13:28 ` Niklas Haas
     [not found] ` <NTnyn9K--3-9@lynne.ee-NTnytIf----9>
2023-05-10 19:10   ` Lynne
2023-05-11 15:36 ` Anton Khirnov
2023-05-11 16:32   ` Lynne
2023-05-11 16:59     ` Anton Khirnov
2023-05-11 16:03 ` Anton Khirnov
2023-05-11 18:55   ` Lynne
2023-05-16 13:31     ` Anton Khirnov
2023-05-16 14:47       ` Lynne [this message]
     [not found]       ` <NV_0sN0--3-9@lynne.ee-NV_0vMs----9>
2023-05-22  8:26         ` Lynne
     [not found]         ` <NVyq4UQ--F-9@lynne.ee-NW1ZGRp----9>
2023-05-25  0:31           ` Lynne
     [not found]           ` <NWFJK4e--3-9@lynne.ee-NWFJONn----9>
2023-05-26 17:52             ` Lynne
2023-05-26 19:19               ` Anton Khirnov
2023-05-26 20:50                 ` Lynne
2023-05-11 16:05 ` Anton Khirnov
2023-05-11 16:40   ` Lynne
2023-05-11 17:00     ` Anton Khirnov
2023-05-11 16:06 ` Anton Khirnov
2023-05-11 16:45   ` Lynne
2023-05-11 16:14 ` Anton Khirnov
2023-05-11 16:47   ` Lynne
2023-05-11 17:13     ` Anton Khirnov
2023-05-11 16:15 ` Anton Khirnov
2023-05-11 16:50   ` Lynne
2023-05-11 16:21 ` Anton Khirnov
2023-05-11 18:58   ` Lynne
2023-05-16 13:33     ` Anton Khirnov
2023-05-16 14:41       ` Lynne
2023-05-11 16:29 ` Anton Khirnov
2023-05-11 18:13   ` Lynne
2023-05-16 13:40     ` Anton Khirnov
2023-05-16 14:46       ` Lynne
2023-05-18  8:29         ` Anton Khirnov
2023-05-18 12:28           ` Lynne
2023-05-11 16:34 ` Anton Khirnov
2023-05-11 17:12   ` Lynne
2023-05-11 17:19     ` Anton Khirnov
2023-05-11 16:34 ` Anton Khirnov
2023-05-11 17:16   ` Lynne
2023-05-11 16:40 ` Anton Khirnov
2023-05-11 17:20   ` Lynne
2023-05-11 17:27     ` Anton Khirnov
2023-05-11 19:11       ` Lynne
2023-05-18  8:34 ` [FFmpeg-devel] libavcodec: add Vulkan common video code Anton Khirnov
2023-05-18 11:07   ` Lynne
2023-05-18  8:54 ` [FFmpeg-devel] libavcodec: add Vulkan common video decoding code Anton Khirnov
2023-05-18 12:27   ` Lynne
2023-05-19 12:11 ` [FFmpeg-devel] [PATCH 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering Leo Izen

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=NV_0sN0--3-9@lynne.ee \
    --to=dev@lynne.ee \
    --cc=ffmpeg-devel@ffmpeg.org \
    /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