This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 1d0d4f3c145b1eada0bd57e05e5c409a2a43b74f
Author:     Lynne <[email protected]>
AuthorDate: Tue Sep 22 13:13:15 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Wed Sep 23 00:30:52 2026 +0900

    ffv1enc_vulkan: always bind the setup shader's remap table
    
    The binding was left unwritten outside of remap mode, which validation
    flagged on every dispatch.
---
 libavcodec/ffv1enc_vulkan.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libavcodec/ffv1enc_vulkan.c b/libavcodec/ffv1enc_vulkan.c
index d0c168924f..4897f3b236 100644
--- a/libavcodec/ffv1enc_vulkan.c
+++ b/libavcodec/ffv1enc_vulkan.c
@@ -536,12 +536,12 @@ static int vulkan_encode_ffv1_submit_frame(AVCodecContext 
*avctx,
                                     slice_data_buf,
                                     0, slice_data_size*f->slice_count,
                                     VK_FORMAT_UNDEFINED);
-    if (f->remap_mode)
-        ff_vk_shader_update_desc_buffer(&fv->s, exec,
-                                        &fv->setup, 1, 1, 0,
-                                        remap_data_buf,
-                                        0, remap_data_size*f->slice_count,
-                                        VK_FORMAT_UNDEFINED);
+    /* The remap table is only read in remap mode, but must be a valid buffer 
*/
+    ff_vk_shader_update_desc_buffer(&fv->s, exec,
+                                    &fv->setup, 1, 1, 0,
+                                    f->remap_mode ? remap_data_buf : 
slice_data_buf,
+                                    0, VK_WHOLE_SIZE,
+                                    VK_FORMAT_UNDEFINED);
 
     ff_vk_exec_bind_shader(&fv->s, exec, &fv->setup);
     ff_vk_shader_update_push_const(&fv->s, exec, &fv->setup,

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to