From: Lynne <dev@lynne.ee> To: ffmpeg-devel@ffmpeg.org Cc: Lynne <dev@lynne.ee> Subject: [FFmpeg-devel] [PATCH 1/2] hwcontext_vulkan: add workaround for BROKEN nvidia crap Date: Tue, 17 Jun 2025 04:30:22 +0900 Message-ID: <20250616193040.2517489-1-dev@lynne.ee> (raw) --- libavutil/hwcontext_vulkan.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 51be0c0d3b..f05b75110d 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -2828,6 +2828,12 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc) return err; } + /* Nvidia is violating the spec because they thought no one would use this. */ + if (p->dev_is_nvidia && + (((fmt->nb_images == 1) && (fmt->vk_planes > 1)) || + (av_pix_fmt_desc_get(hwfc->sw_format)->nb_components == 1))) + supported_usage &= ~VK_IMAGE_USAGE_HOST_TRANSFER_BIT; + /* Image usage flags */ if (!hwctx->usage) { hwctx->usage = supported_usage & (VK_IMAGE_USAGE_TRANSFER_DST_BIT | -- 2.49.0 _______________________________________________ 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".
next reply other threads:[~2025-06-16 19:31 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-06-16 19:30 Lynne [this message] 2025-06-16 19:30 ` [FFmpeg-devel] [PATCH 2/2] hwcontext_vulkan: enable unified image layouts Lynne
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=20250616193040.2517489-1-dev@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