diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-04-15 13:25:52 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-04-15 13:34:56 +0200 |
commit | 9d81352277f72bb2b337446d75a8b72a9607b658 (patch) | |
tree | 2ff036b48fc1813c447d7af0e27eeac8cc22bd4c | |
parent | 098523b825c14184592a8717c2c3becbf6bc3f9f (diff) |
mg2d: use correct stride
-rw-r--r-- | mg2d.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -890,11 +890,11 @@ static int mg_levels_init(MG2DContext *ctx) } diff0_max = findmax(priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_00]->data, priv->root->solver->domain_size, - ctx->diff_coeffs[MG2D_DIFF_COEFF_00]->stride); + priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_00]->stride[0]); diff2_max = findmax(priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_20]->data, priv->root->solver->domain_size, - ctx->diff_coeffs[MG2D_DIFF_COEFF_20]->stride); + priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_20]->stride[0]); tmp = findmax(priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_02]->data, priv->root->solver->domain_size, - ctx->diff_coeffs[MG2D_DIFF_COEFF_02]->stride); + priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_02]->stride[0]); diff2_max = MAX(diff2_max, tmp); if (priv->dg->nb_components > 1) { |