Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 571E6606A326 for ; Fri, 6 Nov 2026 18:16:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gWnkxOI6 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE77110E20C; Fri, 6 Nov 2026 18:16:46 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB54B10E32D for ; Fri, 6 Nov 2026 18:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1793988553; x=1825524553; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fFb4Q/JXjLISz/l6NGgDVmYLnDCdBeREGdudYqIHB1Q=; b=gWnkxOI6Z05404A0gGlqDh+77ivb5SDa69bRgBwqyXEiBBLS9uL7yir8 5lj2yfnKR2bxORRDmI4ngjM3HOVlR+euduKfW/Yv18hCw20laCAI7cRYg +XEl++f0IYCccxaV8l2K8CwraPAGIj6+PzzSe6Rw+mIUxiWR40JlmXH1A Omoz0vfUksSfYpgPwD4Z7GJt2px72NW2EJmC60SVrYVwDH7dJ8v5Z5Hih yw3jx/Zd4NAGBYk0GJFGSuK+t8czLL3YgLlosNhBtOmbumkrWg7Gk99oj 23+Z8/DCeybq66T+KomraOM8BSGnZpV1HboPIcfv2WDOxiiaAPQ7U1o5L w==; X-CSE-ConnectionGUID: BbgGJpV+T46Og+OQl7bcUQ== X-CSE-MsgGUID: /gaMliGITLunudixenoP9g== X-IronPort-AV: E=McAfee;i="6800,10657,11958"; a="2723924" X-IronPort-AV: E=Sophos;i="6.27,197,1787036400"; d="scan'208";a="2723924" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2026 10:09:13 -0800 X-CSE-ConnectionGUID: NzlHx5tvRlKdYUKwk/J/ew== X-CSE-MsgGUID: ToAWoF0HTpOvIEi7F2UW1Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,197,1787036400"; d="scan'208";a="7362629" Received: from dev-417.igk.intel.com ([10.91.214.181]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2026 10:09:11 -0800 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: igt-dev@lists.freedesktop.org Cc: Karthik B S , Swati Sharma , =?UTF-8?q?Juha-Pekka=20Heikkil=C3=A4?= , Jani Nikula , =?UTF-8?q?Micha=C5=82=20Grzelak?= , =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH i-g-t v9 5/9] tests/intel/kms_ccs: split outer test loop into two Date: Fri, 6 Nov 2026 19:08:45 +0100 Message-ID: <20261106180849.156578-6-michal.grzelak@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20261106180849.156578-1-michal.grzelak@linux.intel.com> References: <20261106180849.156578-1-michal.grzelak@linux.intel.com> X-Archived-By: 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-Archive: List-Post: List-Help: List-Subscribe: , Sender: "igt-dev" X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 (Thasleem) Reviewed-by: Juha-Pekka Heikkila 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