[igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Check if sequential pipe is enabled

Karthik B S karthik.b.s at intel.com
Mon Jun 19 05:58:14 UTC 2023


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 at 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



More information about the igt-dev mailing list