This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit e9645930dd665b2018d4da247b808189b9237ba6 Author: Lynne <[email protected]> AuthorDate: Fri Feb 13 13:17:38 2026 +0100 Commit: Lynne <[email protected]> CommitDate: Thu Feb 19 19:42:34 2026 +0100 vulkan/ffv1_dec: synchronize image writes when decoding --- libavcodec/vulkan/ffv1_dec.comp.glsl | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/libavcodec/vulkan/ffv1_dec.comp.glsl b/libavcodec/vulkan/ffv1_dec.comp.glsl index 842cb8d51a..bcec99fed9 100644 --- a/libavcodec/vulkan/ffv1_dec.comp.glsl +++ b/libavcodec/vulkan/ffv1_dec.comp.glsl @@ -127,23 +127,22 @@ void decode_line(ivec2 sp, int w, rc_dec[gl_LocalInvocationID.x] = false; barrier(); - int diff; - if (gl_LocalInvocationID.x == 0) - diff = get_isymbol(); - - barrier(); - uint i = gl_LocalInvocationID.x; - if (rc_dec[i]) - slice_rc_state[rc_off] = zero_one_state[rc_state[i] + - (rc_data[i] ? 256 : 0)]; - if (gl_LocalInvocationID.x == 0) { + int diff = get_isymbol(); if (pr[0] < 0) diff = -diff; uint v = zero_extend(pr[1] + diff, bits); imageStore(dec[p], sp + LADDR(ivec2(x, y)), uvec4(v)); } + + /* Image write now visible to other invocs */ + memoryBarrierImage(); + barrier(); + if (rc_dec[gl_LocalInvocationID.x]) + slice_rc_state[rc_off] = + zero_one_state[rc_state[gl_LocalInvocationID.x] + + (rc_data[gl_LocalInvocationID.x] ? 256 : 0)]; } } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
