[igt-dev] [PATCH v4 2/7] tests/kms_async_flips: Limit the execution to single pipe

Nidhi Gupta nidhi1.gupta at intel.com
Thu Feb 2 05:15:04 UTC 2023


From: Bhanuprakash Modem <bhanuprakash.modem at intel.com>

As the execution is taking more time, limit the execution to single
pipe.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
 tests/kms_async_flips.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 7cb71f6b..d516e3e2 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -543,17 +543,15 @@ static void run_test(data_t *data, void (*test)(data_t *))
 	igt_output_t *output;
 	enum pipe pipe;
 
-	for_each_pipe(&data->display, pipe) {
-		for_each_valid_output_on_pipe(&data->display, pipe, output) {
-			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), output->name) {
-				data->output = output;
-				data->pipe = pipe;
-				test(data);
-			}
-
-			if (!data->extended)
-				break;
+	for_each_pipe_with_valid_output(&data->display, pipe, output) {
+		igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), output->name) {
+			data->output = output;
+			data->pipe = pipe;
+			test(data);
 		}
+
+		if (!data->extended)
+			break;
 	}
 }
 
-- 
2.39.0



More information about the igt-dev mailing list