Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7BD0589BF3 for ; Mon, 6 Sep 2021 18:17:45 +0000 (UTC) From: Imre Deak Date: Mon, 6 Sep 2021 21:17:33 +0300 Message-Id: <20210906181736.3914421-4-imre.deak@intel.com> In-Reply-To: <20210906181736.3914421-1-imre.deak@intel.com> References: <20210906181736.3914421-1-imre.deak@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH v2 3/6] tests/kms_ccs: Fix small aux stride subtest List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Juha-Pekka Heikkila List-ID: Use the correct CCS plane stride for the small aux stride subtest. Signed-off-by: Imre Deak Reviewed-by: Juha-Pekka Heikkila --- tests/kms_ccs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c index c87812d20..81cb4ca5b 100644 --- a/tests/kms_ccs.c +++ b/tests/kms_ccs.c @@ -307,7 +307,7 @@ static void generate_fb(data_t *data, struct igt_fb *fb, if (fb_flags & FB_SMALL_AUX_STRIDE) { igt_skip_on_f(width <= 1024, "FB already has the smallest possible stride\n"); - f.pitches[index] = ALIGN(f.pitches[1]/2, 128); + f.pitches[index] = ALIGN(f.pitches[index] / 2, 128); } if (fb_flags & FB_ZERO_AUX_STRIDE) -- 2.27.0