From 9d81352277f72bb2b337446d75a8b72a9607b658 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 15 Apr 2024 13:25:52 +0200 Subject: mg2d: use correct stride --- mg2d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mg2d.c b/mg2d.c index 103f514..58886cd 100644 --- a/mg2d.c +++ b/mg2d.c @@ -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) { -- cgit v1.2.3