Issue 1755 in webm: Add LSX optimization functions

84 views
Skip to first unread message

chyhc… via monorail

unread,
Jan 28, 2022, 3:04:24 AM1/28/22
to webm-d...@webmproject.org
Status: Untriaged
Owner: ----
Labels: Pri-2 Type-Enhancement

New issue 1755 by chyhc...@gmail.com: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755

Add some optimization functions with LSX(loongson SIMD extension) instruction. LSX comes from loongson architecture. In addition, the loongarch builtin extension is added.

--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Git Watcher via monorail

unread,
Feb 8, 2022, 4:26:05 PM2/8/22
to webm-d...@webmproject.org

Comment #1 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c1

The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/b3cc4b625d1d2c9a0913dcfbda97dd3bf845f998

commit b3cc4b625d1d2c9a0913dcfbda97dd3bf845f998
Author: Lu Wang <wan...@loongson.cn>
Date: Wed Nov 10 07:21:17 2021

vp8[loongarch]: Optimize vp8_loop/sixtap, vpx_dc with LSX.

1. vp8_loop_filter_mbh, vp8_loop_filter_mbv
2. vp8_sixtap_predict16x16, vp8_sixtap_predict8x8
3. vpx_dc_predictor_16x16, vpx_dc_predictor_8x8

./vpxdec --progress -o YUV_1920X1080.yuv original_1200f/VP8_1920X1080.webm

before: 37.77fps
after : 220.90fps

Bug: webm:1755

Change-Id: I1a3ce16f0c872261d813b6531cfdf25bd59bb774

[add] https://crrev.com/b3cc4b625d1d2c9a0913dcfbda97dd3bf845f998/vp8/common/loongarch/sixtap_filter_lsx.c
[modify] https://crrev.com/b3cc4b625d1d2c9a0913dcfbda97dd3bf845f998/vp8/vp8_common.mk
[modify] https://crrev.com/b3cc4b625d1d2c9a0913dcfbda97dd3bf845f998/vp8/common/rtcd_defs.pl
[add] https://crrev.com/b3cc4b625d1d2c9a0913dcfbda97dd3bf845f998/vp8/common/loongarch/loopfilter_filters_lsx.c
[add] https://crrev.com/b3cc4b625d1d2c9a0913dcfbda97dd3bf845f998/vpx_dsp/loongarch/intrapred_lsx.c
[modify] https://crrev.com/b3cc4b625d1d2c9a0913dcfbda97dd3bf845f998/vpx_dsp/vpx_dsp_rtcd_defs.pl
[modify] https://crrev.com/b3cc4b625d1d2c9a0913dcfbda97dd3bf845f998/vpx_dsp/vpx_dsp.mk

Git Watcher via monorail

unread,
Feb 8, 2022, 4:26:06 PM2/8/22
to webm-d...@webmproject.org

Comment #2 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c2


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/85a9bdc6cc0ab6be4a2fb2c93f9e1551688489f6

commit 85a9bdc6cc0ab6be4a2fb2c93f9e1551688489f6
Author: Lu Wang <wan...@loongson.cn>
Date: Wed Nov 10 07:05:42 2021

vpx_util[loongarch]: Add loongson_intrinsics.h v1.0.5.

Bug: webm:1755

Change-Id: Id2fa999bdb8788bd4285114c748c547fa262a95e

[add] https://crrev.com/85a9bdc6cc0ab6be4a2fb2c93f9e1551688489f6/vpx_util/loongson_intrinsics.h

chyhc… via monorail

unread,
Mar 3, 2022, 7:49:11 AM3/3/22
to webm-d...@webmproject.org

Comment #6 on issue 1755 by chyhc...@gmail.com: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c6

commit 624b1367004801639ed35759d5f1759a092c8410
Author: yuanhecai <yuan...@loongson.cn>
Date: Tue Mar 1 09:48:13 2022 +0800

vp9[loongarch]: Optimize horizontal/vertical_8_c

1. vpx_lpf_vertical_8_lsx
2. vpx_lpf_horizontal_8_lsx

Bug: webm:1755

Change-Id: I6b05d6b1b2ac4d2a75beb9c9ca9700976fc3af55

Git Watcher via monorail

unread,
Mar 3, 2022, 1:36:14 PM3/3/22
to webm-d...@webmproject.org

Comment #7 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c7


The following revision refers to this bug:


commit 624b1367004801639ed35759d5f1759a092c8410
Author: yuanhecai <yuan...@loongson.cn>
Date: Tue Mar 01 01:48:13 2022


vp9[loongarch]: Optimize horizontal/vertical_8_c

1. vpx_lpf_vertical_8_lsx
2. vpx_lpf_horizontal_8_lsx

Bug: webm:1755

Change-Id: I6b05d6b1b2ac4d2a75beb9c9ca9700976fc3af55

chyhc… via monorail

unread,
Mar 14, 2022, 9:22:14 AM3/14/22
to webm-d...@webmproject.org

Comment #8 on issue 1755 by chyhc...@gmail.com: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c8

commit 111e28941dc0333fa7c7d273ccd6e90cede005e1 (HEAD -> main)
Author: yuanhecai <yuan...@loongson.cn>
Date: Tue Mar 1 16:33:47 2022 +0800

vp9[loongarch]: Optimize convolve8_horiz/vert/c

1. vpx_convolve8_lsx
2. vpx_convolve8_vert_lsx
3. vpx_convolve8_horiz_lsx

Bug: webm:1755

Change-Id: I9897e1ed6a904ac74d1078bd22b275af44db142d

jz… via monorail

unread,
Mar 14, 2022, 5:03:08 PM3/14/22
to webm-d...@webmproject.org

Comment #9 on issue 1755 by jz...@google.com: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c9

Thanks for updating the bug. With 'Bug: webm:1755' in the commit message it will also be updated when the change is merged, so you don't have to add the detail manually unless it gets forgotten in a commit like in #c5.

Git Watcher via monorail

unread,
Mar 16, 2022, 4:29:07 PM3/16/22
to webm-d...@webmproject.org

Git Watcher via monorail

unread,
Mar 16, 2022, 4:30:06 PM3/16/22
to webm-d...@webmproject.org

Comment #11 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c11


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/31441d45f76819bb80dfc76f0a0f59f2501239e8

commit 31441d45f76819bb80dfc76f0a0f59f2501239e8
Author: yuanhecai <yuan...@loongson.cn>
Date: Thu Mar 10 06:56:42 2022

vp9[loongarch]: Optimize convolve/convolve8_avg_c

1. vpx_convolve8_avg_lsx
2. vpx_convolve_avg_lsx

Bug: webm:1755

Change-Id: I4af5c362a94f11d0b5d1760e18326660bdbc0559

[modify] https://crrev.com/31441d45f76819bb80dfc76f0a0f59f2501239e8/test/convolve_test.cc
[modify] https://crrev.com/31441d45f76819bb80dfc76f0a0f59f2501239e8/vpx_dsp/vpx_dsp_rtcd_defs.pl
[add] https://crrev.com/31441d45f76819bb80dfc76f0a0f59f2501239e8/vpx_dsp/loongarch/vpx_convolve8_avg_lsx.c
[add] https://crrev.com/31441d45f76819bb80dfc76f0a0f59f2501239e8/vpx_dsp/loongarch/vpx_convolve_avg_lsx.c
[modify] https://crrev.com/31441d45f76819bb80dfc76f0a0f59f2501239e8/vpx_dsp/vpx_dsp.mk

Git Watcher via monorail

unread,
Mar 17, 2022, 1:21:06 PM3/17/22
to webm-d...@webmproject.org

Comment #12 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c12


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/bf672f23a5336cb54dbcb2e4417142139f44cc3e

commit bf672f23a5336cb54dbcb2e4417142139f44cc3e
Author: yuanhecai <yuan...@loongson.cn>
Date: Fri Mar 11 02:56:07 2022

vp8[loongarch]: Optimize idct_add, filter_bv/bh

1. vp8_dc_only_idct_add_lsx
2. vp8_loop_filter_bh_lsx
3. vp8_loop_filter_bv_lsx

Bug: webm:1755

Change-Id: I9b629767e2a4e9db8cbb3ee2369186502dc6eb00

[modify] https://crrev.com/bf672f23a5336cb54dbcb2e4417142139f44cc3e/vp8/vp8_common.mk
[modify] https://crrev.com/bf672f23a5336cb54dbcb2e4417142139f44cc3e/vp8/common/rtcd_defs.pl
[modify] https://crrev.com/bf672f23a5336cb54dbcb2e4417142139f44cc3e/vp8/common/loongarch/loopfilter_filters_lsx.c
[add] https://crrev.com/bf672f23a5336cb54dbcb2e4417142139f44cc3e/vp8/common/loongarch/idct_lsx.c

Git Watcher via monorail

unread,
Apr 4, 2022, 10:53:06 PM4/4/22
to webm-d...@webmproject.org

Git Watcher via monorail

unread,
Apr 4, 2022, 10:53:07 PM4/4/22
to webm-d...@webmproject.org

Comment #15 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c15


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/176acaf9f6efb3603e920eb35630a16f8a88ad5e

commit 176acaf9f6efb3603e920eb35630a16f8a88ad5e
Author: yuanhecai <yuan...@loongson.cn>
Date: Tue Mar 22 05:58:50 2022

loongarch: Fix bugs

Fix bugs from loopfilter_filters_lsx.c, vpx_convolve8_avg_lsx.c

Bug: webm:1755

Change-Id: I7ee8e367d66a49f3be10d7e417837d3b6ef50bdb

[modify] https://crrev.com/176acaf9f6efb3603e920eb35630a16f8a88ad5e/vp8/common/loongarch/loopfilter_filters_lsx.c
[modify] https://crrev.com/176acaf9f6efb3603e920eb35630a16f8a88ad5e/vpx_dsp/loongarch/vpx_convolve_lsx.h
[modify] https://crrev.com/176acaf9f6efb3603e920eb35630a16f8a88ad5e/vpx_dsp/loongarch/vpx_convolve8_avg_lsx.c

Git Watcher via monorail

unread,
Apr 4, 2022, 10:53:07 PM4/4/22
to webm-d...@webmproject.org

Comment #14 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c14


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/d4060647213d51125457ae151a2402bf95ebdf71

commit d4060647213d51125457ae151a2402bf95ebdf71
Author: yuanhecai <yuan...@loongson.cn>
Date: Mon Mar 28 09:12:57 2022

vp8[loongarch]: Optimize dequant_idct_add_y/uv_block

1. vp8_dequant_idct_add_uv_block_lsx
2. vp8_dequant_idct_add_y_block_lsx

Bug: webm:1755

Change-Id: I1f006daaefb2075b422bc72a3f69c5abee776e2e

[modify] https://crrev.com/d4060647213d51125457ae151a2402bf95ebdf71/vp8/common/rtcd_defs.pl
[modify] https://crrev.com/d4060647213d51125457ae151a2402bf95ebdf71/vp8/common/loongarch/idct_lsx.c

Git Watcher via monorail

unread,
Apr 12, 2022, 5:05:06 PM4/12/22
to webm-d...@webmproject.org

Comment #17 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c17


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/3a3645dbdc7822f52f7b136861e4447ea8d551f9

commit 3a3645dbdc7822f52f7b136861e4447ea8d551f9
Author: yuanhecai <yuan...@loongson.cn>
Date: Tue Mar 15 08:15:36 2022

vp9[loongarch]: Optimize sad64x64/32x32/16x16

1. vpx_sad64x64x4d_lsx
2. vpx_sad32x32x4d_lsx
3. vpx_sad16x16x4d_lsx
4. vpx_sad64x64_lsx
5. vpx_sad32x32_lsx

Bug: webm:1755

Change-Id: Ief71c2216f697b261d7c1fc481c89c9f1a6098e6

[add] https://crrev.com/3a3645dbdc7822f52f7b136861e4447ea8d551f9/vpx_dsp/loongarch/sad_lsx.c
[modify] https://crrev.com/3a3645dbdc7822f52f7b136861e4447ea8d551f9/test/sad_test.cc
[modify] https://crrev.com/3a3645dbdc7822f52f7b136861e4447ea8d551f9/vpx_dsp/vpx_dsp_rtcd_defs.pl
[modify] https://crrev.com/3a3645dbdc7822f52f7b136861e4447ea8d551f9/vpx_dsp/vpx_dsp.mk

Git Watcher via monorail

unread,
Apr 12, 2022, 5:05:06 PM4/12/22
to webm-d...@webmproject.org

Comment #16 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c16


The following revision refers to this bug:

Git Watcher via monorail

unread,
Apr 14, 2022, 12:45:06 AM4/14/22
to webm-d...@webmproject.org

Comment #18 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c18


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/d387c89e86de35fe3f12b5c9db2919bc82f90157

commit d387c89e86de35fe3f12b5c9db2919bc82f90157
Author: yuanhecai <yuan...@loongson.cn>
Date: Thu Mar 31 07:01:30 2022

Update loongson_intrinsics.h from v1.0.5 to v1.2.1

Bug: webm:1755

Change-Id: Ib636d2aa521332b76b6aa1b0aa0a9005aafbf32b

[modify] https://crrev.com/d387c89e86de35fe3f12b5c9db2919bc82f90157/vpx_util/loongson_intrinsics.h

Git Watcher via monorail

unread,
Apr 16, 2022, 12:52:06 AM4/16/22
to webm-d...@webmproject.org

Comment #19 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c19


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/81e5841a167e351613ce8ffc068d7ebe83e666a1

commit 81e5841a167e351613ce8ffc068d7ebe83e666a1
Author: yuanhecai <yuan...@loongson.cn>
Date: Thu Apr 14 03:30:55 2022

vp9[loongarch]: Optimize idct32x32_1024/1/34_add

1. vpx_idct32x32_1024_add_lsx
2. vpx_idct32x32_34_add_lsx
3. vpx_idct32x32_1_add_lsx

Bug: webm:1755

Change-Id: I9c24f75e0d93613754d8e30da7e007b8d1374e60

[modify] https://crrev.com/81e5841a167e351613ce8ffc068d7ebe83e666a1/vpx_dsp/loongarch/fwd_txfm_lsx.h
[modify] https://crrev.com/81e5841a167e351613ce8ffc068d7ebe83e666a1/test/dct32x32_test.cc
[add] https://crrev.com/81e5841a167e351613ce8ffc068d7ebe83e666a1/vpx_dsp/loongarch/idct32x32_lsx.c
[modify] https://crrev.com/81e5841a167e351613ce8ffc068d7ebe83e666a1/test/partial_idct_test.cc
[modify] https://crrev.com/81e5841a167e351613ce8ffc068d7ebe83e666a1/vpx_dsp/vpx_dsp_rtcd_defs.pl
[modify] https://crrev.com/81e5841a167e351613ce8ffc068d7ebe83e666a1/vpx_dsp/vpx_dsp.mk

Git Watcher via monorail

unread,
Apr 16, 2022, 12:52:09 AM4/16/22
to webm-d...@webmproject.org

Git Watcher via monorail

unread,
Apr 22, 2022, 3:13:07 PM4/22/22
to webm-d...@webmproject.org

Comment #21 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c21


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/618739f59f5d3505ff76a1a82eb198bed4ec989d

commit 618739f59f5d3505ff76a1a82eb198bed4ec989d
Author: yuanhecai <yuan...@loongson.cn>
Date: Sun Apr 03 10:49:52 2022

vp9[loongarch]: Optimize horizontal/vertical_4/dual

1. vpx_lpf_horizontal_4_lsx
2. vpx_lpf_vertical_4_lsx
3. vpx_lpf_horizontal_4_dual_lsx
3. vpx_lpf_vertical_4_dual_lsx

Bug: webm:1755

Change-Id: I12e9f27cafd9514b24cfbf2354cc66c7d1238687

[add] https://crrev.com/618739f59f5d3505ff76a1a82eb198bed4ec989d/vpx_dsp/loongarch/loopfilter_4_lsx.c
[modify] https://crrev.com/618739f59f5d3505ff76a1a82eb198bed4ec989d/test/lpf_test.cc
[modify] https://crrev.com/618739f59f5d3505ff76a1a82eb198bed4ec989d/vpx_dsp/vpx_dsp.mk
[modify] https://crrev.com/618739f59f5d3505ff76a1a82eb198bed4ec989d/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
Apr 22, 2022, 3:13:08 PM4/22/22
to webm-d...@webmproject.org

Comment #22 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c22


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/608a28e30b7abc62ed415af3dbb3d981e22b8a1c

commit 608a28e30b7abc62ed415af3dbb3d981e22b8a1c
Author: yuanhecai <yuan...@loongson.cn>
Date: Mon Apr 18 08:21:04 2022

vp9[loongarch]: Optimize convolve8_avg_vert/convolve_copy

1. vpx_convolve8_avg_vert_lsx
2. vpx_convolve_copy_lsx
3. vpx_idct32x32_135_add_lsx

Bug: webm:1755

Change-Id: I6bdfe5836a91a5e361ab869b26641e86c5ebb68d

[add] https://crrev.com/608a28e30b7abc62ed415af3dbb3d981e22b8a1c/vpx_dsp/loongarch/vpx_convolve8_avg_vert_lsx.c
[add] https://crrev.com/608a28e30b7abc62ed415af3dbb3d981e22b8a1c/vpx_dsp/loongarch/vpx_convolve_copy_lsx.c
[modify] https://crrev.com/608a28e30b7abc62ed415af3dbb3d981e22b8a1c/test/convolve_test.cc
[modify] https://crrev.com/608a28e30b7abc62ed415af3dbb3d981e22b8a1c/vpx_dsp/vpx_dsp.mk
[modify] https://crrev.com/608a28e30b7abc62ed415af3dbb3d981e22b8a1c/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
Apr 22, 2022, 3:13:09 PM4/22/22
to webm-d...@webmproject.org

Comment #23 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c23


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/2651113a64d2a6892431b843ce35b57621369765

commit 2651113a64d2a6892431b843ce35b57621369765
Author: yuanhecai <yuan...@loongson.cn>
Date: Mon Apr 18 08:17:17 2022

vp9[loongarch]: Optimize vertical/horizontal_8_dual

1. vpx_lpf_vertical_8_dual_lsx
2. vpx_lpf_horizontal_8_dual_lsx

Bug: webm:1755

Change-Id: I354df02cc215f36b4edf6558af0ff7fd6909deac

[modify] https://crrev.com/2651113a64d2a6892431b843ce35b57621369765/vpx_dsp/loongarch/loopfilter_8_lsx.c
[modify] https://crrev.com/2651113a64d2a6892431b843ce35b57621369765/test/lpf_test.cc
[modify] https://crrev.com/2651113a64d2a6892431b843ce35b57621369765/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
Apr 25, 2022, 7:48:11 PM4/25/22
to webm-d...@webmproject.org

Git Watcher via monorail

unread,
Apr 26, 2022, 3:02:08 PM4/26/22
to webm-d...@webmproject.org

Git Watcher via monorail

unread,
Apr 28, 2022, 12:57:07 AM4/28/22
to webm-d...@webmproject.org

Comment #26 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c26


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/1b00ad52630a0379d2df16a4fc7351f4e3d0896e

commit 1b00ad52630a0379d2df16a4fc7351f4e3d0896e
Author: yuanhecai <yuan...@loongson.cn>
Date: Tue Apr 12 01:10:27 2022

vp9[loongarch]: Optimize sad8x8/32x64/64x32x4d

1. vpx_sad8x8x4d_lsx
2. vpx_sad32x64x4d_lsx
3. vpx_sad64x32x4d_lsx

Bug: webm:1755

Change-Id: I08a2b8717ec8623ffdd4451a04e68fa3a7228668

[modify] https://crrev.com/1b00ad52630a0379d2df16a4fc7351f4e3d0896e/vpx_dsp/loongarch/sad_lsx.c
[modify] https://crrev.com/1b00ad52630a0379d2df16a4fc7351f4e3d0896e/test/sad_test.cc
[modify] https://crrev.com/1b00ad52630a0379d2df16a4fc7351f4e3d0896e/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
Apr 28, 2022, 12:57:09 AM4/28/22
to webm-d...@webmproject.org

Comment #27 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c27


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/b1ed8e08a21b33c0f5039559113004bee7943dc4

commit b1ed8e08a21b33c0f5039559113004bee7943dc4
Author: yuanhecai <yuan...@loongson.cn>
Date: Thu Apr 07 09:51:51 2022

vp9[loongarch]: Optimize sad64x64/32x32_avg,comp_avg_pred

1. vpx_sad64x64_avg_lsx
2. vpx_sad32x32_avg_lsx
3. comp_avg_pred_lsx

Bug: webm:1755

Change-Id: I58dabdcdd4265bd6ebd5670db8a132d2e838683f

[add] https://crrev.com/b1ed8e08a21b33c0f5039559113004bee7943dc4/vpx_dsp/loongarch/avg_pred_lsx.c
[modify] https://crrev.com/b1ed8e08a21b33c0f5039559113004bee7943dc4/vpx_dsp/loongarch/sad_lsx.c
[modify] https://crrev.com/b1ed8e08a21b33c0f5039559113004bee7943dc4/test/comp_avg_pred_test.cc
[modify] https://crrev.com/b1ed8e08a21b33c0f5039559113004bee7943dc4/test/sad_test.cc
[modify] https://crrev.com/b1ed8e08a21b33c0f5039559113004bee7943dc4/vpx_dsp/vpx_dsp.mk
[modify] https://crrev.com/b1ed8e08a21b33c0f5039559113004bee7943dc4/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
May 13, 2022, 3:16:06 PM5/13/22
to webm-d...@webmproject.org

Comment #28 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c28


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/a44e61db29e510afe35448a0401c436bcfba3ec5

commit a44e61db29e510afe35448a0401c436bcfba3ec5
Author: yuanhecai <yuan...@loongson.cn>
Date: Wed Apr 13 08:46:22 2022

vp9[loongarch]: Optimize avg_variance64x64/variance8x8

1. vpx_variance8x8_lsx
2. vpx_sub_pixel_avg_variance64x64_lsx

Bug: webm:1755

Change-Id: I7d68c7f2f5c8d27dc31cfd32298aeefb68f5d560

[modify] https://crrev.com/a44e61db29e510afe35448a0401c436bcfba3ec5/vpx_dsp/loongarch/variance_lsx.c
[modify] https://crrev.com/a44e61db29e510afe35448a0401c436bcfba3ec5/test/variance_test.cc
[modify] https://crrev.com/a44e61db29e510afe35448a0401c436bcfba3ec5/vpx_dsp/loongarch/sub_pixel_variance_lsx.c
[modify] https://crrev.com/a44e61db29e510afe35448a0401c436bcfba3ec5/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
May 13, 2022, 3:16:06 PM5/13/22
to webm-d...@webmproject.org

Comment #29 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c29


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/65d9ac5b5a3dd1c72c15a1fc5bcc004a43ad4c90

commit 65d9ac5b5a3dd1c72c15a1fc5bcc004a43ad4c90
Author: yuanhecai <yuan...@loongson.cn>
Date: Tue Apr 12 13:01:53 2022

vp9[loongarch]: Optimize fdct4x4/8x8_lsx

1. vpx_fdct4x4_lsx
2. vpx_fdct8x8_lsx

Bug: webm:1755

Change-Id: If283fc08f9bedcbecd2c4052adb210f8fe00d4f0

[modify] https://crrev.com/65d9ac5b5a3dd1c72c15a1fc5bcc004a43ad4c90/vpx_dsp/loongarch/fwd_txfm_lsx.h
[modify] https://crrev.com/65d9ac5b5a3dd1c72c15a1fc5bcc004a43ad4c90/vpx_dsp/loongarch/fwd_txfm_lsx.c
[modify] https://crrev.com/65d9ac5b5a3dd1c72c15a1fc5bcc004a43ad4c90/test/dct_test.cc
[modify] https://crrev.com/65d9ac5b5a3dd1c72c15a1fc5bcc004a43ad4c90/test/fdct8x8_test.cc
[modify] https://crrev.com/65d9ac5b5a3dd1c72c15a1fc5bcc004a43ad4c90/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
May 13, 2022, 3:16:07 PM5/13/22
to webm-d...@webmproject.org

Comment #30 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c30


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/0d51bb2fc5e1e5581d8d378aad3ac61b3205b3b7

commit 0d51bb2fc5e1e5581d8d378aad3ac61b3205b3b7
Author: yuanhecai <yuan...@loongson.cn>
Date: Tue Apr 12 08:02:55 2022

vp9[loongarch]: Optimize vpx_hadamard_16x16/8x8

1. vpx_hadamard_16x16_lsx
2. vpx_hadamard_8x8_lsx

Bug: webm:1755

Change-Id: I3b1e0a2c026c3806b7bbbd191d0edf0e78912af7

[add] https://crrev.com/0d51bb2fc5e1e5581d8d378aad3ac61b3205b3b7/vpx_dsp/loongarch/avg_lsx.c
[modify] https://crrev.com/0d51bb2fc5e1e5581d8d378aad3ac61b3205b3b7/test/hadamard_test.cc
[add] https://crrev.com/0d51bb2fc5e1e5581d8d378aad3ac61b3205b3b7/vpx_dsp/loongarch/bitdepth_conversion_lsx.h
[modify] https://crrev.com/0d51bb2fc5e1e5581d8d378aad3ac61b3205b3b7/vpx_dsp/vpx_dsp_rtcd_defs.pl
[modify] https://crrev.com/0d51bb2fc5e1e5581d8d378aad3ac61b3205b3b7/vpx_dsp/vpx_dsp.mk

Git Watcher via monorail

unread,
May 17, 2022, 7:00:10 PM5/17/22
to webm-d...@webmproject.org

Comment #31 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c31


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/1c39c625264fa64db1c573cbac1f3a4f24c660d3

commit 1c39c625264fa64db1c573cbac1f3a4f24c660d3
Author: yuanhecai <yuan...@loongson.cn>
Date: Sun Apr 24 02:34:21 2022

vp8[loongarch]: Optimize vp8_sixtap_predict4x4

1. vp8_sixtap_predict4x4

Bug: webm:1755

Change-Id: If7d844496ef2cfe2252f2ef12bb7cded63ad03dd

[modify] https://crrev.com/1c39c625264fa64db1c573cbac1f3a4f24c660d3/vp8/common/loongarch/sixtap_filter_lsx.c
[modify] https://crrev.com/1c39c625264fa64db1c573cbac1f3a4f24c660d3/vp8/common/rtcd_defs.pl

Git Watcher via monorail

unread,
May 17, 2022, 7:00:11 PM5/17/22
to webm-d...@webmproject.org

Comment #33 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c33


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/bfbb79e252b9102ca5ae3ad5ab605254ce6681d2

commit bfbb79e252b9102ca5ae3ad5ab605254ce6681d2
Author: yuanhecai <yuan...@loongson.cn>
Date: Wed Apr 20 03:13:13 2022

vp8[loongarch]: Optimize sub_pixel_variance8x8/16x16

1. vpx_sub_pixel_variance8x8_lsx
1. vpx_sub_pixel_variance16x16_lsx
2. vpx_mse16x16_lsx

Bug: webm:1755

Change-Id: Iaedd8393c950c13042a0597d0d47b534a2723317

[modify] https://crrev.com/bfbb79e252b9102ca5ae3ad5ab605254ce6681d2/vpx_dsp/loongarch/variance_lsx.c
[modify] https://crrev.com/bfbb79e252b9102ca5ae3ad5ab605254ce6681d2/test/variance_test.cc
[modify] https://crrev.com/bfbb79e252b9102ca5ae3ad5ab605254ce6681d2/vpx_dsp/loongarch/sub_pixel_variance_lsx.c
[add] https://crrev.com/bfbb79e252b9102ca5ae3ad5ab605254ce6681d2/vpx_dsp/loongarch/variance_lsx.h
[modify] https://crrev.com/bfbb79e252b9102ca5ae3ad5ab605254ce6681d2/vpx_dsp/vpx_dsp.mk
[modify] https://crrev.com/bfbb79e252b9102ca5ae3ad5ab605254ce6681d2/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
May 17, 2022, 7:00:11 PM5/17/22
to webm-d...@webmproject.org

Comment #32 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c32


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/508c0aff89b511d04cbd1e782cc24313fd6ae06b

commit 508c0aff89b511d04cbd1e782cc24313fd6ae06b
Author: yuanhecai <yuan...@loongson.cn>
Date: Wed Apr 20 03:16:55 2022

vp8[loongarch]: Optimize fdct8x4/diamond_search_sad

1. vp8_short_fdct8x4_lsx
2. vp8_diamond_search_sad_lsx
3. vpx_sad8x8_lsx

Bug: webm:1755

Change-Id: Ic9df84ead2d4fc07ec58e9730d6a12ac2b2d31c1

[modify] https://crrev.com/508c0aff89b511d04cbd1e782cc24313fd6ae06b/vpx_dsp/loongarch/sad_lsx.c
[modify] https://crrev.com/508c0aff89b511d04cbd1e782cc24313fd6ae06b/vp8/common/rtcd_defs.pl
[modify] https://crrev.com/508c0aff89b511d04cbd1e782cc24313fd6ae06b/vp8/encoder/loongarch/dct_lsx.c
[modify] https://crrev.com/508c0aff89b511d04cbd1e782cc24313fd6ae06b/test/sad_test.cc
[modify] https://crrev.com/508c0aff89b511d04cbd1e782cc24313fd6ae06b/vp8/encoder/mcomp.c
[modify] https://crrev.com/508c0aff89b511d04cbd1e782cc24313fd6ae06b/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
May 17, 2022, 7:00:14 PM5/17/22
to webm-d...@webmproject.org

Comment #34 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c34


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/8486953e5e0de3cec0332b787aa05a7405e3c207

commit 8486953e5e0de3cec0332b787aa05a7405e3c207
Author: Hao Chen <che...@loongson.cn>
Date: Fri Mar 18 01:33:53 2022

vp8[loongarch]: Optimize vp8 encoding partial function

1. vp8_short_fdct4x4
2. vp8_regular_quantize_b
3. vp8_block_error
4. vp8_mbblock_error
5. vpx_subtract_block

Bug: webm:1755

Change-Id: I3dbfc7e3937af74090fc53fb4c9664e6cdda29ef

[add] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/vp8/encoder/loongarch/quantize_lsx.c
[modify] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/test/quantize_test.cc
[add] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/vp8/encoder/loongarch/encodeopt_lsx.c
[modify] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/vp8/vp8cx.mk
[modify] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/vp8/common/rtcd_defs.pl
[modify] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/test/vp9_subtract_test.cc
[modify] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/test/vp8_fdct4x4_test.cc
[add] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/vp8/encoder/loongarch/dct_lsx.c
[add] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/vpx_dsp/loongarch/subtract_lsx.c
[modify] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/vpx_dsp/vpx_dsp.mk
[modify] https://crrev.com/8486953e5e0de3cec0332b787aa05a7405e3c207/vpx_dsp/vpx_dsp_rtcd_defs.pl

Git Watcher via monorail

unread,
May 18, 2022, 2:02:07 PM5/18/22
to webm-d...@webmproject.org

Comment #35 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c35


The following revision refers to this bug:

Git Watcher via monorail

unread,
May 19, 2022, 4:50:06 PM5/19/22
to webm-d...@webmproject.org

Comment #36 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c36


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/63378a94f996304e2784ecd6584e70cf487991e9

commit 63378a94f996304e2784ecd6584e70cf487991e9
Author: yuanhecai <yuan...@loongson.cn>
Date: Mon May 09 06:39:05 2022

loongarch: Reduce the number of instructions

Replace some redundant instructions to improve the efficiency
of the program.

1. txfm_macros_lsx.h
2. vpx_convolve8_avg_lsx.c
3. vpx_convolve8_horiz_lsx.c
4. vpx_convolve8_lsx.c
5. vpx_convolve8_vert_lsx.c
6. vpx_convolve_copy_lsx.c
7. vpx_convolve_lsx.h

Bug: webm:1755

Change-Id: I9b7fdf6900338a26f9b1775609ad387648684f3d

[modify] https://crrev.com/63378a94f996304e2784ecd6584e70cf487991e9/vpx_dsp/loongarch/sad_lsx.c
[modify] https://crrev.com/63378a94f996304e2784ecd6584e70cf487991e9/vpx_dsp/loongarch/vpx_convolve8_lsx.c
[modify] https://crrev.com/63378a94f996304e2784ecd6584e70cf487991e9/vpx_dsp/loongarch/vpx_convolve_copy_lsx.c
[modify] https://crrev.com/63378a94f996304e2784ecd6584e70cf487991e9/vpx_dsp/loongarch/vpx_convolve8_vert_lsx.c
[modify] https://crrev.com/63378a94f996304e2784ecd6584e70cf487991e9/vpx_dsp/loongarch/vpx_convolve8_horiz_lsx.c
[modify] https://crrev.com/63378a94f996304e2784ecd6584e70cf487991e9/vpx_dsp/loongarch/txfm_macros_lsx.h
[modify] https://crrev.com/63378a94f996304e2784ecd6584e70cf487991e9/vpx_dsp/loongarch/vpx_convolve_lsx.h
[modify] https://crrev.com/63378a94f996304e2784ecd6584e70cf487991e9/vpx_dsp/loongarch/vpx_convolve8_avg_lsx.c

Git Watcher via monorail

unread,
May 20, 2022, 2:53:05 PM5/20/22
to webm-d...@webmproject.org

Comment #37 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c37


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/f92c451e6c03685e28217f2080cc52a994938664

commit f92c451e6c03685e28217f2080cc52a994938664
Author: yuanhecai <yuan...@loongson.cn>
Date: Tue May 17 11:06:04 2022

loongarch: Modify the representation of macros

Some macros have been changed to "#define do {...} While (0)",
change the rest to "static INLINE ..."

Bug: webm:1755

Change-Id: I445ac0c543f12df38f086b479394b111058367d0

[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/sad_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vp8/common/loongarch/sixtap_filter_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vp8/common/loongarch/loopfilter_filters_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/bitdepth_conversion_lsx.h
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/quantize_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/loopfilter_lsx.h
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/vpx_convolve8_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/vpx_convolve8_avg_vert_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/fwd_txfm_lsx.h
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/vpx_convolve8_vert_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/loopfilter_16_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/fwd_txfm_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/fwd_dct32x32_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vp8/common/loongarch/idct_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/idct32x32_lsx.c
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/vpx_convolve_lsx.h
[modify] https://crrev.com/f92c451e6c03685e28217f2080cc52a994938664/vpx_dsp/loongarch/vpx_convolve8_avg_lsx.c

Git Watcher via monorail

unread,
May 25, 2022, 1:45:09 PM5/25/22
to webm-d...@webmproject.org

Comment #38 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c38


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/44874ab879455941c977910daba1b80788f243da

commit 44874ab879455941c977910daba1b80788f243da
Author: yuanhecai <yuan...@loongson.cn>
Date: Wed May 25 01:42:35 2022

loongarch: Remove redundant code

Simplify architecture support code and remove redundant code
to improve efficiency.

Bug: webm:1755

Change-Id: I03bc251aca115b0379fe19907abd165e0876355b

[modify] https://crrev.com/44874ab879455941c977910daba1b80788f243da/vpx_dsp/loongarch/loopfilter_16_lsx.c
[modify] https://crrev.com/44874ab879455941c977910daba1b80788f243da/vpx_dsp/loongarch/loopfilter_4_lsx.c
[modify] https://crrev.com/44874ab879455941c977910daba1b80788f243da/build/make/rtcd.pl
[modify] https://crrev.com/44874ab879455941c977910daba1b80788f243da/vp8/common/loongarch/loopfilter_filters_lsx.c
[modify] https://crrev.com/44874ab879455941c977910daba1b80788f243da/vpx_dsp/loongarch/loopfilter_8_lsx.c

Git Watcher via monorail

unread,
Jun 28, 2022, 5:21:08 PM6/28/22
to webm-d...@webmproject.org

Comment #39 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c39


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/b355ab504667c352d96ab70bcb92165b8fc32813

commit b355ab504667c352d96ab70bcb92165b8fc32813
Author: Jerome Jiang <ji...@google.com>
Date: Tue Jun 28 14:24:57 2022

Add vp8_ prefix for quantize_lsx.c

Duplicate name as vpx_dsp/loongarch/quantize_lsx.c
Chromium update script fails.

Bug: webm:1755
Change-Id: Ifb956c2292d909496eb2b9e1833993f1b021b07e

[modify] https://crrev.com/b355ab504667c352d96ab70bcb92165b8fc32813/vp8/vp8cx.mk
[rename] https://crrev.com/b355ab504667c352d96ab70bcb92165b8fc32813/vp8/encoder/loongarch/vp8_quantize_lsx.c

Git Watcher via monorail

unread,
Sep 13, 2023, 2:49:19 PM9/13/23
to webm-d...@webmproject.org

Comment #40 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c40


The following revision refers to this bug:

Git Watcher via monorail

unread,
Sep 13, 2023, 2:49:23 PM9/13/23
to webm-d...@webmproject.org

Comment #41 on issue 1755 by Git Watcher: Add LSX optimization functions
https://bugs.chromium.org/p/webm/issues/detail?id=1755#c41


The following revision refers to this bug:
https://chromium.googlesource.com/webm/libvpx/+/391bb5604b85195468e73d576766252f6ce8e427

commit 391bb5604b85195468e73d576766252f6ce8e427
Author: yuanhecai <yuan...@loongson.cn>
Date: Sat Apr 15 03:11:16 2023

loongarch: simplify vpx_quantize_b/b_32x32_lsx args

Bug: webm:1755

Change-Id: I42fdb1c34f959dd1204b343b8192e3d9b49821b4

[modify] https://crrev.com/391bb5604b85195468e73d576766252f6ce8e427/vpx_dsp/loongarch/quantize_lsx.c
[modify] https://crrev.com/391bb5604b85195468e73d576766252f6ce8e427/test/vp9_quantize_test.cc
Reply all
Reply to author
Forward
0 new messages