Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA3D3CFA46B for ; Sun, 23 Nov 2025 15:08:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D10E10E152; Sun, 23 Nov 2025 15:08:53 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="nIOopl77"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0C1E010E056 for ; Sun, 23 Nov 2025 15:08:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1763910530; x=1795446530; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HNLnOcH50a8KMKla068nhEBwEqggkOckazrz9QI/3xs=; b=nIOopl773JBsB2OU/5CgToLPGOhfd0SoOtikVOcgmA4Yl8qRVX2IbE1y KtfxN00Ig2JEPc27xQpEnSEKgwGUlsIoTyXrRH6R2p8nFNKCTmnJ6XdKp cDVpXV62/nVr309+LCxynptgZuhT2vqK/rd9uRZlKGINf1Uomdv+r5An5 MVY2r27OWL/kHsCycuKIWZ89leLXbd8NQ0SGHNe0GyyzR81TkleYwQAGg aLzSITnPu4XJ95+T9Nve5kvrjrDaH/jZEjib04IDR+C6c9/erAelqHqrk igyfU7avKDot5/yaFEf9AFnHTZ96PbDCZWWKO8BR+KVvkhc/CloEkdEMD A==; X-CSE-ConnectionGUID: bjNB5fMkRPurdfRkrmWt2w== X-CSE-MsgGUID: WyNDj8FlQaKr0RbECa3nKg== X-IronPort-AV: E=McAfee;i="6800,10657,11622"; a="76615211" X-IronPort-AV: E=Sophos;i="6.20,221,1758610800"; d="scan'208";a="76615211" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2025 07:08:50 -0800 X-CSE-ConnectionGUID: RC3doRdsS3ugtER6d4zo+w== X-CSE-MsgGUID: 02XaTiXpS2GYbW2qxwCLEw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,221,1758610800"; d="scan'208";a="191903819" Received: from kunal-x299-aorus-gaming-3-pro.iind.intel.com ([10.190.239.13]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2025 07:08:49 -0800 From: Kunal Joshi To: igt-dev@lists.freedesktop.org Cc: Kunal Joshi Subject: [PATCH i-g-t 22/35] tests/kms_pwrite_crc: use display-aware pipe CRC helper Date: Sun, 23 Nov 2025 20:53:59 +0530 Message-Id: <20251123152412.599801-23-kunal1.joshi@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20251123152412.599801-1-kunal1.joshi@intel.com> References: <20251123152412.599801-1-kunal1.joshi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Switch kms_pwrite_crc to igt_pipe_crc_new_for_display so CRC capture uses the display mapping instead of assuming pipe index matches CRTC index. Signed-off-by: Kunal Joshi --- tests/intel/kms_pwrite_crc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/intel/kms_pwrite_crc.c b/tests/intel/kms_pwrite_crc.c index 981d7b38e..a881d6389 100644 --- a/tests/intel/kms_pwrite_crc.c +++ b/tests/intel/kms_pwrite_crc.c @@ -141,8 +141,9 @@ static void prepare_crtc(data_t *data) if (data->pipe_crc) igt_pipe_crc_free(data->pipe_crc); - data->pipe_crc = igt_pipe_crc_new(data->drm_fd, data->pipe, - IGT_PIPE_CRC_SOURCE_AUTO); + data->pipe_crc = igt_pipe_crc_new_for_display(&data->display, + data->pipe, + IGT_PIPE_CRC_SOURCE_AUTO); /* get reference crc for the white fb */ igt_pipe_crc_collect_crc(data->pipe_crc, &data->ref_crc); -- 2.25.1