This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.0 in repository ffmpeg.
commit b9aa305686df5f3bd0fe48fb70086d260ab7791e Author: Philip Langdale <[email protected]> AuthorDate: Wed Jul 8 16:56:34 2026 -0700 Commit: Lynne <[email protected]> CommitDate: Sun Jul 12 13:48:17 2026 +0900 avutil/hwcontext_vulkan: declare cuda as a transfer-compatible format The cuda hwcontext has listed AV_PIX_FMT_VULKAN among its supported formats since Vulkan interop was first added, so a device's frame constraints advertise Vulkan as a transfer-compatible ("sw") format. This is what allows an hwupload targeting a cuda device to accept a Vulkan frame as input during format negotiation. The Vulkan hwcontext never made the reciprocal declaration, so an hwupload targeting a Vulkan device would not accept a cuda frame, and a cuda -> Vulkan upload could not be configured even though the transfer itself is supported. Advertise AV_PIX_FMT_CUDA in the Vulkan frame constraints to ensure we have consistent behaviour in both directions. (cherry picked from commit d09d5afc3aebede25d2d245ee23b75a47ea17c3a) --- libavutil/hwcontext_vulkan.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 3da0d3c04d..90d3d14dbb 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -2215,7 +2215,7 @@ static int vulkan_frames_get_constraints(AVHWDeviceContext *ctx, NULL, NULL, NULL, NULL, p->disable_multiplane, 1) >= 0; } - constraints->valid_sw_formats = av_malloc_array(count + 1, + constraints->valid_sw_formats = av_malloc_array(count + 1 + CONFIG_CUDA, sizeof(enum AVPixelFormat)); if (!constraints->valid_sw_formats) return AVERROR(ENOMEM); @@ -2230,6 +2230,10 @@ static int vulkan_frames_get_constraints(AVHWDeviceContext *ctx, } } +#if CONFIG_CUDA + constraints->valid_sw_formats[count++] = AV_PIX_FMT_CUDA; +#endif + constraints->valid_sw_formats[count++] = AV_PIX_FMT_NONE; constraints->min_width = 1; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
