Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Check if sequential pipe is enabled
@ 2023-06-19  5:58 Karthik B S
  2023-06-19  7:29 ` Modem, Bhanuprakash
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Karthik B S @ 2023-06-19  5:58 UTC (permalink / raw)
  To: igt-dev

As big joiner is only possible on sequential pipe combinations,
check that the required pipe is enabled before attempting
a big joiner modeset.

Signed-off-by: Karthik B S <karthik.b.s@intel.com>
---
 tests/i915/kms_big_joiner.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/i915/kms_big_joiner.c b/tests/i915/kms_big_joiner.c
index b9dda58f..47c1f5aa 100644
--- a/tests/i915/kms_big_joiner.c
+++ b/tests/i915/kms_big_joiner.c
@@ -225,8 +225,11 @@ igt_main
 	igt_subtest_with_dynamic("basic") {
 		for (i = 0; i < data.n_pipes - 1; i++) {
 			data.pipe1 = pipe_seq[i];
-			igt_dynamic_f("pipe-%s", kmstest_pipe_name(pipe_seq[i]))
-				test_basic_modeset(&data);
+			/* Check if the consecutive pipe is enabled*/
+			if (pipe_seq[i + 1] == data.pipe1 + 1) {
+				igt_dynamic_f("pipe-%s", kmstest_pipe_name(pipe_seq[i]))
+					test_basic_modeset(&data);
+			}
 		}
 	}
 
-- 
2.39.1

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

end of thread, other threads:[~2023-06-19 12:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-19  5:58 [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Check if sequential pipe is enabled Karthik B S
2023-06-19  7:29 ` Modem, Bhanuprakash
2023-06-19  8:56 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-06-19 12:13 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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