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

Git pushed a commit to branch master
in repository ffmpeg.

commit acb38d320b3d5bfd963ff9a20daf56d6cab944ec
Author:     Rémi Denis-Courmont <[email protected]>
AuthorDate: Thu Dec 11 18:19:42 2025 +0200
Commit:     Rémi Denis-Courmont <[email protected]>
CommitDate: Mon Dec 15 18:35:58 2025 +0200

    lavc/llvidencdsp: fix R-V V sub_left_predict
    
    The code assumed that the destination buffer was zeroed, a misbehaviour
    with which checkasm is bug-compatible as it zeroes the destination
    buffer. The fixed code is even faster:
    
    SpacemiT X60:
    sub_left_predict_c:                                  51792.5 ( 1.00x)
    sub_left_predict_rvv_i32:                             3504.4 (14.78x)
---
 libavcodec/riscv/llvidencdsp_rvv.S | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/riscv/llvidencdsp_rvv.S 
b/libavcodec/riscv/llvidencdsp_rvv.S
index 068f36aea3..35ac976dd0 100644
--- a/libavcodec/riscv/llvidencdsp_rvv.S
+++ b/libavcodec/riscv/llvidencdsp_rvv.S
@@ -79,12 +79,10 @@ func ff_llvidenc_sub_left_predict_rvv, zve32x
         vsetvli t0, t3, e8, m8, ta, ma
         vle8.v  v16, (a1)
         sub     t3, t3, t0
-        vle8.v  v8, (a0)
-        add     a1, a1, t0
         vslide1up.vx    v24, v16, a5
-        vadd.vv v8, v8, v16
+        add     a1, a1, t0
+        vsub.vv v8, v16, v24
         lb      a5, -1(a1)
-        vsub.vv v8, v8, v24
         vse8.v  v8, (a0)
         add     a0, a0, t0
         bnez    t3, 2b

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

Reply via email to