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

Git pushed a commit to branch master
in repository ffmpeg.

commit 5fc56fbf96859e7113f8a377dda1a23448de0ae7
Author:     Lynne <[email protected]>
AuthorDate: Tue May 26 11:33:24 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Tue May 26 17:47:04 2026 +0900

    vulkan/ffv1_enc_rct_search: barrier before reading score_mode
    
    There was a race condition where the main invocation would race ahead and 
use
    values not yet written by other invocs.
    
    Sponsored-by: Sovereign Tech Fund
---
 libavcodec/vulkan/ffv1_enc_rct_search.comp.glsl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/vulkan/ffv1_enc_rct_search.comp.glsl 
b/libavcodec/vulkan/ffv1_enc_rct_search.comp.glsl
index d72c667b10..52171ab221 100644
--- a/libavcodec/vulkan/ffv1_enc_rct_search.comp.glsl
+++ b/libavcodec/vulkan/ffv1_enc_rct_search.comp.glsl
@@ -126,6 +126,10 @@ void coeff_search(inout SliceContext sc)
         }
     }
 
+    /* All lanes must have finished accumulating into score_mode before
+     * lane (0,0) inspects it for the argmin. */
+    barrier();
+
     if (gl_LocalInvocationID.x == 0 && gl_LocalInvocationID.y == 0) {
         uint min_score = 0xFFFFFFFF;
         uint min_idx = 3;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to