From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id C1A5088FAE for ; Thu, 23 Feb 2023 15:16:22 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Thu, 23 Feb 2023 20:40:12 +0530 Message-Id: <20230223151018.2565040-46-bhanuprakash.modem@intel.com> In-Reply-To: <20230223151018.2565040-1-bhanuprakash.modem@intel.com> References: <20230223151018.2565040-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t v8 45/51] tests/i915/kms_frontbuffer_tracking: 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: As many 2x tests are currently running on Pipe-A & B only, those tests will always SKIP if there is any 8K supported panel in the config. Instead of Skipping the test, add some intelligence to the subtest to identify the valid pipe/output combo to execute the subtest. V2: - Use updated helper name Signed-off-by: Bhanuprakash Modem Reviewed-by: Nidhi Gupta --- tests/i915/kms_frontbuffer_tracking.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c index 5b47999e8..650e14a77 100644 --- a/tests/i915/kms_frontbuffer_tracking.c +++ b/tests/i915/kms_frontbuffer_tracking.c @@ -403,15 +403,23 @@ static bool find_connector(bool edp_only, bool pipe_a, if (pipe_a && pipe != PIPE_A) continue; - if (output == forbidden_output || pipe == forbidden_pipe) + if (output == forbidden_output || pipe == forbidden_pipe) { + igt_output_set_pipe(output, pipe); + igt_output_override_mode(output, connector_get_mode(output)); + continue; + } if (c->connector_type == DRM_MODE_CONNECTOR_eDP && opt.no_edp) continue; - *ret_output = output; - *ret_pipe = pipe; - return true; + igt_output_set_pipe(output, pipe); + igt_output_override_mode(output, connector_get_mode(output)); + if (i915_pipe_output_combo_valid(&drm.display)) { + *ret_output = output; + *ret_pipe = pipe; + return true; + } } return false; -- 2.39.1