Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/kms_dsc: Use high resolution mode for output format subtests
@ 2024-03-22  8:14 Ankit Nautiyal
  2024-03-22 10:13 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ankit Nautiyal @ 2024-03-22  8:14 UTC (permalink / raw)
  To: igt-dev; +Cc: bhanuprakash.modem

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-23  8:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22  8:14 [PATCH i-g-t] tests/intel/kms_dsc: Use high resolution mode for output format subtests Ankit Nautiyal
2024-03-22 10:13 ` ✓ Fi.CI.BAT: success for " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox