The branch, master has been updated
via 1e90047fe6dae4abf19351d678819bd29b41be0e (commit)
from 7043522fe07b4678de59e01f987de8f2f46d40a2 (commit)
- Log -----------------------------------------------------------------
commit 1e90047fe6dae4abf19351d678819bd29b41be0e
Author: averne <[email protected]>
AuthorDate: Mon Dec 1 15:40:40 2025 +0100
Commit: averne <[email protected]>
CommitDate: Mon Dec 1 15:40:40 2025 +0100
vulkan: fix host copy stride
memoryRowLength is is texels, not bytes
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index c3322bafbd..89bf39bb3f 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -4382,6 +4382,7 @@ static int vulkan_transfer_host(AVHWFramesContext *hwfc,
AVFrame *hwf,
FFVulkanFunctions *vk = &p->vkctx.vkfn;
AVVkFrame *hwf_vk = (AVVkFrame *)hwf->data[0];
+ const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(swf->format);
const int planes = av_pix_fmt_count_planes(swf->format);
const int nb_images = ff_vk_count_images(hwf_vk);
@@ -4474,7 +4475,7 @@ static int vulkan_transfer_host(AVHWFramesContext *hwfc,
AVFrame *hwf,
get_plane_wh(&p_w, &p_h, swf->format, swf->width, swf->height, i);
region_info.pHostPointer = swf->data[i];
- region_info.memoryRowLength = swf->linesize[i];
+ region_info.memoryRowLength = swf->linesize[i] /
desc->comp[i].step;
region_info.imageSubresource.aspectMask = ff_vk_aspect_flag(hwf,
i);
region_info.imageExtent = (VkExtent3D){ p_w, p_h, 1 };
copy_info.srcImage = hwf_vk->img[img_idx];
-----------------------------------------------------------------------
Summary of changes:
libavutil/hwcontext_vulkan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]