From mboxrd@z Thu Jan 1 00:00:00 1970 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 24F27C98310 for ; Thu, 24 Sep 2026 07:56:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BB6AB10F38D; Thu, 24 Sep 2026 07:56:55 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="DdfHnYsd"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8FCDA10F37E for ; Thu, 24 Sep 2026 07:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1790236260; x=1821772260; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vdYgrvVRuqVwY7c4l8y+WOnqu2wSEhjl6GwsWIk5sEc=; b=DdfHnYsdSo5cdcxbWwuKyXzwpZdEurz2cr+Y1SynXwK0ZziAEm7D6Sh6 KmdsefgnHSmd6YRc6KvAkOpSz/ACuGyh5q1U1SbMyt/v6iWLMr5rNkl1I Cl+tUmD9BiN5mc/7lyOTLjDAZMc6r1dHhJij/wGMRFqqtGz9n9krUNCvx CEpURefSSJc6w8HmcUpaRLOTxYvlhw+h+Go6dMZ6rrUTA+AgilDXaBwdP AJf/0x2efz9S/hDSJafT1b3zNHjN/dduzFIFgl1M2FH8PM6ggpj2643pS 0rtzk+jeY1QwK4+51fRTFLVucXo7InDEu5AByIx9FPse3lXVQtwwWCkZL g==; X-CSE-ConnectionGUID: 26OrOw7YSNObYzXH3/K+cA== X-CSE-MsgGUID: kUTayiq8QLOh7CKj7MNFBA== X-IronPort-AV: E=McAfee;i="6800,10657,11914"; a="90119602" X-IronPort-AV: E=Sophos;i="6.27,120,1787036400"; d="scan'208";a="90119602" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2026 00:51:00 -0700 X-CSE-ConnectionGUID: 848NDKigQ7awVYTma1lXaw== X-CSE-MsgGUID: sP2M1LcoQASITteX2PBs6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,120,1787036400"; d="scan'208";a="311854754" Received: from dev-417.igk.intel.com ([10.91.214.181]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2026 00:50:59 -0700 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: igt-dev@lists.freedesktop.org Cc: karthik.b.s@intel.com, swati2.sharma@intel.com, juhapekka.heikkila@gmail.com, michal.grzelak@intel.com, =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH i-g-t v6 4/7] tests/intel/kms_ccs: split outer test loop into two Date: Thu, 24 Sep 2026 09:50:16 +0200 Message-ID: <20260924075019.4151374-5-michal.grzelak@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260924075019.4151374-1-michal.grzelak@linux.intel.com> References: <20260924075019.4151374-1-michal.grzelak@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 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" for_each_crtc_with_valid_output() iterates over every crtc with connected output. Split it into two loops. This is needed to handle per output and per crtc cases. v4->v5 - fix indentation (Mohammed) Signed-off-by: MichaƂ Grzelak --- tests/intel/kms_ccs.c | 58 +++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/tests/intel/kms_ccs.c b/tests/intel/kms_ccs.c index 4d0bda6a78..1a922792c5 100644 --- a/tests/intel/kms_ccs.c +++ b/tests/intel/kms_ccs.c @@ -1152,47 +1152,47 @@ static void test_output(data_t *data, const int testnum) "Older than Xe2 platform needed.\n"); } - for_each_crtc_with_valid_output(&data->display, crtc, - data->output) { - data->crtc = crtc; - igt_display_reset(&data->display); + for_each_connected_output(&data->display, data->output) { + for_each_crtc(&data->display, crtc) { + if (!igt_crtc_connector_valid(crtc, data->output)) + continue; - igt_output_set_crtc(data->output, - crtc); - if (!intel_pipe_output_combo_valid(&data->display)) - continue; + data->crtc = crtc; + igt_display_reset(&data->display); - igt_dynamic_f("pipe-%s-%s", - igt_crtc_name(crtc), - data->output->name) { - int valid_tests = 0; + igt_output_set_crtc(data->output, crtc); + if (!intel_pipe_output_combo_valid(&data->display)) + continue; - if (data->flags == TEST_RANDOM) - igt_info("Testing with seed %d\n", data->seed); + igt_dynamic_f("pipe-%s-%s", igt_crtc_name(crtc), data->output->name) { + int valid_tests = 0; - if (data->flags & TEST_ALL_PLANES) { - igt_display_require_output_on_crtc(crtc); + if (data->flags == TEST_RANDOM) + igt_info("Testing with seed %d\n", data->seed); - for_each_plane_on_crtc(crtc, - data->plane) { - if (skip_plane(data, data->plane)) - continue; + if (data->flags & TEST_ALL_PLANES) { + igt_display_require_output_on_crtc(crtc); + for_each_plane_on_crtc(crtc, data->plane) { + if (skip_plane(data, data->plane)) + continue; + + for (int j = 0; j < ARRAY_SIZE(formats); j++) { + data->format = formats[j]; + valid_tests += test_ccs(data); + } + } + } else { for (int j = 0; j < ARRAY_SIZE(formats); j++) { data->format = formats[j]; valid_tests += test_ccs(data); } } - } else { - for (int j = 0; j < ARRAY_SIZE(formats); j++) { - data->format = formats[j]; - valid_tests += test_ccs(data); - } + igt_require_f(valid_tests > 0, + "no valid tests for %s on pipe %s\n", + ccs_modifiers[i].str, + igt_crtc_name(crtc)); } - igt_require_f(valid_tests > 0, - "no valid tests for %s on pipe %s\n", - ccs_modifiers[i].str, - igt_crtc_name(crtc)); } } } -- 2.45.2