Ensure avx and ssse3 stay in sync by testing them against each other.
Showing the changes to test (1 of 5 files). Show all
Unified · Split
| @@ -392,16 +392,14 @@ INSTANTIATE_TEST_CASE_P( · 391 unmodified lines | ||
| 392 | 392 | // TODO(johannkoenig): AVX optimizations do not yet pass the 32x32 test or |
| 393 | 393 | // highbitdepth configurations. |
| 394 | 394 | #if HAVE_AVX && !CONFIG_VP9_HIGHBITDEPTH |
| 395 | −INSTANTIATE_TEST_CASE_P(AVX, VP9QuantizeTest, | |
| 396 | − ::testing::Values(make_tuple(&vpx_quantize_b_avx, | |
| 397 | − &vpx_quantize_b_c, | |
| 398 | − VPX_BITS_8, 16))); | |
| 399 | −#if ARCH_X86_64 | |
| 400 | −INSTANTIATE_TEST_CASE_P(DISABLED_AVX, VP9QuantizeTest, | |
| 401 | − ::testing::Values(make_tuple(&vpx_quantize_b_32x32_avx, | |
| 402 | − &vpx_quantize_b_32x32_c, | |
| 403 | − VPX_BITS_8, 32))); | |
| 404 | −#endif // ARCH_X86_64 | |
| 395 | +INSTANTIATE_TEST_CASE_P( | |
| 396 | + AVX, VP9QuantizeTest, | |
| 397 | + ::testing::Values(make_tuple(&vpx_quantize_b_avx, &vpx_quantize_b_c, | |
| 398 | + VPX_BITS_8, 16), | |
| 399 | + // Even though SSSE3 and AVX do not match the reference | |
| 400 | + // code, we can keep them in sync with each other. | |
| 401 | + make_tuple(&vpx_quantize_b_32x32_avx, | |
| 402 | + &vpx_quantize_b_32x32_ssse3, VPX_BITS_8, 32))); | |
| 405 | 403 | #endif // HAVE_AVX && !CONFIG_VP9_HIGHBITDEPTH |
| 406 | 404 | |
| 407 | 405 | // TODO(webm:1448): dqcoeff is not handled correctly in HBD builds. |