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 40C8410E06F for ; Fri, 30 Dec 2022 17:52:04 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Fri, 30 Dec 2022 23:17:37 +0530 Message-Id: <20221230174825.3016716-3-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 02/50] lib/igt_kms: Bigjoiner check in max_bpc constraint List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: There is a possibility of commit failure if the selected pipe/output won't support Bigjoiner or 8K. So we need to handle this case. Signed-off-by: Bhanuprakash Modem Reviewed-by: Swati Sharma --- lib/igt_kms.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 17099abe..1fea67a1 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -5826,6 +5826,11 @@ bool igt_max_bpc_constraint(igt_display_t *display, enum pipe pipe, for_each_connector_mode(output) { igt_output_override_mode(output, &connector->modes[j__]); + + if (is_i915_device(display->drm_fd) && + !igt_check_bigjoiner_support(display)) + continue; + igt_display_commit2(display, display->is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY); if (!igt_check_output_bpc_equal(display->drm_fd, pipe, -- 2.39.0