Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: bhanuprakash.modem@intel.com
Subject: [PATCH i-g-t] tests/intel/kms_dsc: Use high resolution mode for output format subtests
Date: Fri, 22 Mar 2024 13:44:42 +0530	[thread overview]
Message-ID: <20240322081442.4120318-1-ankit.k.nautiyal@intel.com> (raw)

Currently, we are not using the highest resolution mode for output formats
other than RGB. For testing other formats we force an output format, and
try the mode from list of modes.
Lets call get_highres_mode before using the modes, so that we try modes
that are sorted in descending order of resolution. This is to ensure we
try with higher resolution mode and use DSC with that mode.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 tests/intel/kms_dsc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/intel/kms_dsc.c b/tests/intel/kms_dsc.c
index b5c0fa6ab925..9b48caf762f1 100644
--- a/tests/intel/kms_dsc.c
+++ b/tests/intel/kms_dsc.c
@@ -184,10 +184,10 @@ static void update_display(data_t *data, uint32_t test_type)
 	igt_skip_on(!igt_plane_has_format_mod(primary, data->plane_format,
 		    DRM_FORMAT_MOD_LINEAR));
 
+	mode = get_highres_mode(output);
+
 	do {
-		if (data->output_format == DSC_FORMAT_RGB)
-			mode = get_highres_mode(output);
-		else
+		if (data->output_format != DSC_FORMAT_RGB && index > 0)
 			mode = get_next_mode(output, index++);
 
 		if (mode == NULL)
-- 
2.40.1


             reply	other threads:[~2024-03-22  8:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-22  8:14 Ankit Nautiyal [this message]
2024-03-22 10:13 ` ✓ Fi.CI.BAT: success for tests/intel/kms_dsc: Use high resolution mode for output format subtests Patchwork
2024-03-22 10:26 ` ✓ CI.xeBAT: " Patchwork
2024-03-22 11:02 ` [PATCH i-g-t] " Modem, Bhanuprakash
2024-03-23  8:02 ` ✗ Fi.CI.IGT: failure for " 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=20240322081442.4120318-1-ankit.k.nautiyal@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=bhanuprakash.modem@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