From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id C6E1B10E47A for ; Fri, 30 Dec 2022 17:52:29 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Fri, 30 Dec 2022 23:17:53 +0530 Message-Id: <20221230174825.3016716-19-bhanuprakash.modem@intel.com> In-Reply-To: <20221230174825.3016716-1-bhanuprakash.modem@intel.com> References: <20221230174825.3016716-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t v6 18/50] tests/kms_lease: Add support for Bigjoiner List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: This patch will add a check to Skip the subtest if a selected pipe/output combo won't support Bigjoiner or 8K mode. Example: * Pipe-D wont support a mode > 5K * To use 8K mode on a pipe then consecutive pipe must be available & free. V2: - Use updated helper name Signed-off-by: Bhanuprakash Modem Reviewed-by: Mohammed Thasleem --- tests/kms_lease.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/kms_lease.c b/tests/kms_lease.c index 67e8d3be..a52d8bfc 100644 --- a/tests/kms_lease.c +++ b/tests/kms_lease.c @@ -1213,10 +1213,14 @@ igt_main igt_describe(f->desc); igt_subtest_with_dynamic_f("%s", f->name) { for_each_pipe_with_valid_output(display, data.pipe, output) { + igt_display_reset(display); + + igt_output_set_pipe(output, data.pipe); + if (!i915_pipe_output_combo_valid(display)) + continue; + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(data.pipe), igt_output_name(output)) { - igt_display_reset(display); - igt_display_commit(display); data.crtc_id = display->pipes[data.pipe].crtc_id; data.connector_id = output->id; data.plane_id = -- 2.39.0