From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id A079B10E61D for ; Tue, 6 Sep 2022 09:53:56 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Tue, 6 Sep 2022 15:20:21 +0530 Message-Id: <20220906095030.486152-44-bhanuprakash.modem@intel.com> In-Reply-To: <20220906095030.486152-1-bhanuprakash.modem@intel.com> References: <20220906095030.486152-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V2 43/52] tests/i915/kms_fence_pin_leak: 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. Signed-off-by: Bhanuprakash Modem --- tests/i915/kms_fence_pin_leak.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/i915/kms_fence_pin_leak.c b/tests/i915/kms_fence_pin_leak.c index 16eb595f..461ddfbc 100644 --- a/tests/i915/kms_fence_pin_leak.c +++ b/tests/i915/kms_fence_pin_leak.c @@ -124,6 +124,9 @@ static void run_single_test(data_t *data, enum pipe pipe, igt_output_t *output) struct igt_fb fb[2]; int i; + igt_info("Using (pipe %s + %s) to run the subtest.\n", + kmstest_pipe_name(pipe), igt_output_name(output)); + igt_output_set_pipe(output, pipe); mode = igt_output_get_mode(output); @@ -196,6 +199,12 @@ static void run_test(data_t *data) enum pipe p; for_each_pipe_with_valid_output(display, p, output) { + igt_display_reset(display); + + igt_output_set_pipe(output, p); + if (!igt_test_constraint(display)) + continue; + run_single_test(data, p, output); return; /* one time ought to be enough */ -- 2.35.1