Commit d6770f93 authored by Henrik Gramner's avatar Henrik Gramner Committed by Ronald S. Bultje

Add ipred_z1 AVX2 asm

parent f816d5cf
This diff is collapsed.
......@@ -38,6 +38,7 @@ decl_angular_ipred_fn(dav1d_ipred_paeth_avx2);
decl_angular_ipred_fn(dav1d_ipred_smooth_avx2);
decl_angular_ipred_fn(dav1d_ipred_smooth_v_avx2);
decl_angular_ipred_fn(dav1d_ipred_smooth_h_avx2);
decl_angular_ipred_fn(dav1d_ipred_z1_avx2);
decl_angular_ipred_fn(dav1d_ipred_filter_avx2);
decl_cfl_pred_fn(dav1d_ipred_cfl_avx2);
......@@ -65,6 +66,7 @@ void bitfn(dav1d_intra_pred_dsp_init_x86)(Dav1dIntraPredDSPContext *const c) {
c->intra_pred[SMOOTH_PRED] = dav1d_ipred_smooth_avx2;
c->intra_pred[SMOOTH_V_PRED] = dav1d_ipred_smooth_v_avx2;
c->intra_pred[SMOOTH_H_PRED] = dav1d_ipred_smooth_h_avx2;
c->intra_pred[Z1_PRED] = dav1d_ipred_z1_avx2;
c->intra_pred[FILTER_PRED] = dav1d_ipred_filter_avx2;
c->cfl_pred[DC_PRED] = dav1d_ipred_cfl_avx2;
......
......@@ -84,7 +84,8 @@ static void check_intra_pred(Dav1dIntraPredDSPContext *const c) {
int a = 0;
if (mode >= Z1_PRED && mode <= Z3_PRED) /* angle */
a = 90 * (mode - Z1_PRED) + z_angles[rand() % 27];
a = (90 * (mode - Z1_PRED) + z_angles[rand() % 27]) |
(rand() & 0x600);
else if (mode == FILTER_PRED) /* filter_idx */
a = (rand() % 5) | (rand() & ~511);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment