Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Swati Sharma <swati2.sharma@intel.com>
Subject: [PATCH i-g-t 2/2] tests/intel/kms_dsc: Split max_bpc constraint
Date: Mon,  2 Dec 2024 14:21:27 +0530	[thread overview]
Message-ID: <20241202085127.1785594-2-swati2.sharma@intel.com> (raw)
In-Reply-To: <20241202085127.1785594-1-swati2.sharma@intel.com>

Split max_bpc constraint and add igt_info message.

Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
 tests/intel/kms_dsc.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/intel/kms_dsc.c b/tests/intel/kms_dsc.c
index 9b48caf76..5508e7a9e 100644
--- a/tests/intel/kms_dsc.c
+++ b/tests/intel/kms_dsc.c
@@ -281,10 +281,14 @@ static void test_dsc(data_t *data, uint32_t test_type, int bpc,
 		data->pipe = pipe;
 
 		if (!is_dsc_supported_by_sink(data->drm_fd, data->output) ||
-		    !check_gen11_dp_constraint(data->drm_fd, data->output, data->pipe) ||
-		     igt_get_output_max_bpc(data->drm_fd, output->name) < MIN_DSC_BPC)
+		    !check_gen11_dp_constraint(data->drm_fd, data->output, data->pipe))
 			continue;
 
+		if (igt_get_output_max_bpc(data->drm_fd, output->name) < MIN_DSC_BPC) {
+			igt_info("Output %s doesn't support min %d-bpc\n", igt_output_name(data->output), MIN_DSC_BPC);
+			continue;
+		}
+
 		if ((test_type & TEST_DSC_OUTPUT_FORMAT) &&
 		    (!is_dsc_output_format_supported(data->drm_fd, data->disp_ver,
 						     data->output, data->output_format)))
-- 
2.25.1


  reply	other threads:[~2024-12-02  8:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-02  8:51 [PATCH i-g-t 1/2] tests/intel/dsc: Convert debug msg to info msg Swati Sharma
2024-12-02  8:51 ` Swati Sharma [this message]
2024-12-02 11:10   ` [PATCH i-g-t 2/2] tests/intel/kms_dsc: Split max_bpc constraint Samala, Pranay
2024-12-05  9:08     ` Sharma, Swati2
2024-12-02 11:18 ` [PATCH i-g-t 1/2] tests/intel/dsc: Convert debug msg to info msg Samala, Pranay
2024-12-05  9:06   ` Sharma, Swati2
2024-12-02 17:46 ` ✓ i915.CI.BAT: success for series starting with [i-g-t,1/2] " Patchwork
2024-12-02 18:37 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-02 20:11 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-02 21:24 ` ✗ i915.CI.Full: " Patchwork
2024-12-05 12:12 ` ✓ i915.CI.Full: success " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241202085127.1785594-2-swati2.sharma@intel.com \
    --to=swati2.sharma@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox