* [FFmpeg-devel] [PATCH] avutil/hwcontext_vulkan: actually limit number of queues (PR #20725)
@ 2025-10-20 12:16 Niklas Haas via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: Niklas Haas via ffmpeg-devel @ 2025-10-20 12:16 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Niklas Haas
PR #20725 opened by Niklas Haas (haasn)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20725
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20725.patch
This option is parsed after it is used.
>From 2ddf9d2ad57e7a9a5e028e381406693225a4ab8e Mon Sep 17 00:00:00 2001
From: Niklas Haas <git@haasn.dev>
Date: Mon, 20 Oct 2025 14:15:36 +0200
Subject: [PATCH] avutil/hwcontext_vulkan: actually limit number of queues
This option is parsed after it is used.
---
libavutil/hwcontext_vulkan.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index ae4b07c698..efb8879341 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -1756,6 +1756,11 @@ static int vulkan_device_create_internal(AVHWDeviceContext *ctx,
dev_info.pNext = p->feats.device.pNext;
dev_info.pEnabledFeatures = &p->feats.device.features;
+ /* Limit queues to a given number if needed */
+ opt_d = av_dict_get(opts, "limit_queues", NULL, 0);
+ if (opt_d)
+ p->limit_queues = strtol(opt_d->value, NULL, 10);
+
/* Setup enabled queue families */
if ((err = setup_queue_families(ctx, &dev_info)))
goto end;
@@ -1783,11 +1788,6 @@ static int vulkan_device_create_internal(AVHWDeviceContext *ctx,
if (opt_d)
p->use_linear_images = strtol(opt_d->value, NULL, 10);
- /* Limit queues to a given number if needed */
- opt_d = av_dict_get(opts, "limit_queues", NULL, 0);
- if (opt_d)
- p->limit_queues = strtol(opt_d->value, NULL, 10);
-
/* The disable_multiplane argument takes precedent over the option */
p->disable_multiplane = disable_multiplane;
if (!p->disable_multiplane) {
--
2.49.1
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-10-20 12:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-20 12:16 [FFmpeg-devel] [PATCH] avutil/hwcontext_vulkan: actually limit number of queues (PR #20725) Niklas Haas via ffmpeg-devel
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