diff options
author | yuanhecai <yuanhecai@loongson.cn> | 2022-03-01 16:33:47 +0800 |
---|---|---|
committer | yuanhecai <yuanhecai@loongson.cn> | 2022-03-16 12:19:46 +0800 |
commit | 220643c8627d158f75acbf7e1b7dcd9ae642261c (patch) | |
tree | 41214cc2edf99b828bfcbc37cbf9243f3e9634cc /test | |
parent | 4ee32be84be7dfa2b0c00ba04f4d85503d46e3f3 (diff) | |
download | libvpx-220643c8627d158f75acbf7e1b7dcd9ae642261c.tar libvpx-220643c8627d158f75acbf7e1b7dcd9ae642261c.tar.gz libvpx-220643c8627d158f75acbf7e1b7dcd9ae642261c.tar.bz2 libvpx-220643c8627d158f75acbf7e1b7dcd9ae642261c.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/convolve_test.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/convolve_test.cc b/test/convolve_test.cc index 4b2dadefa..94b281484 100644 --- a/test/convolve_test.cc +++ b/test/convolve_test.cc @@ -1449,6 +1449,19 @@ INSTANTIATE_TEST_SUITE_P(MSA, ConvolveTest, ::testing::ValuesIn(kArrayConvolve8_msa)); #endif // HAVE_MSA +#if HAVE_LSX +const ConvolveFunctions convolve8_lsx( + vpx_convolve_copy_c, vpx_convolve_avg_c, vpx_convolve8_horiz_lsx, + vpx_convolve8_avg_horiz_c, vpx_convolve8_vert_lsx, vpx_convolve8_avg_vert_c, + vpx_convolve8_lsx, vpx_convolve8_avg_c, vpx_scaled_horiz_c, + vpx_scaled_avg_horiz_c, vpx_scaled_vert_c, vpx_scaled_avg_vert_c, + vpx_scaled_2d_c, vpx_scaled_avg_2d_c, 0); + +const ConvolveParam kArrayConvolve8_lsx[] = { ALL_SIZES(convolve8_lsx) }; +INSTANTIATE_TEST_SUITE_P(LSX, ConvolveTest, + ::testing::ValuesIn(kArrayConvolve8_lsx)); +#endif // HAVE_LSX + #if HAVE_VSX const ConvolveFunctions convolve8_vsx( vpx_convolve_copy_vsx, vpx_convolve_avg_vsx, vpx_convolve8_horiz_vsx, |