Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t] tests/kms_rotation_crc: reduce execution time
@ 2020-12-18  6:07 Jeevan B
  2020-12-18  7:23 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
  2020-12-18  8:49 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Jeevan B @ 2020-12-18  6:07 UTC (permalink / raw)
  To: igt-dev

Restricting the execution to 2 pipes.

Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
 tests/kms_rotation_crc.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index ffcc2cc2..8fb0fb57 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -396,6 +396,7 @@ static void test_plane_rotation(data_t *data, int plane_type, bool test_bad_form
 	igt_display_t *display = &data->display;
 	igt_output_t *output;
 	enum pipe pipe;
+	int flag = 0;
 
 	if (plane_type == DRM_PLANE_TYPE_CURSOR)
 		igt_require(display->has_cursor_plane);
@@ -455,6 +456,9 @@ static void test_plane_rotation(data_t *data, int plane_type, bool test_bad_form
 			}
 		}
 		igt_pipe_crc_stop(data->pipe_crc);
+		flag++;
+		if (flag == 2)
+			break;
 	}
 }
 
@@ -562,7 +566,7 @@ static void test_multi_plane_rotation(data_t *data, enum pipe pipe)
 	igt_output_t *output;
 	igt_crc_t retcrc_sw, retcrc_hw;
 	planeinfos p[2];
-	int c, used_w, used_h;
+	int c, used_w, used_h, flag = 0;
 	struct p_struct *oldplanes;
 	drmModeModeInfo *mode;
 
@@ -660,6 +664,9 @@ static void test_multi_plane_rotation(data_t *data, enum pipe pipe)
 					}
 				}
 			}
+			flag++;
+			if (flag == 2)
+				break;
 		}
 		igt_pipe_crc_stop(data->pipe_crc);
 		igt_pipe_crc_free(data->pipe_crc);
-- 
2.19.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2020-12-18  8:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-18  6:07 [igt-dev] [i-g-t] tests/kms_rotation_crc: reduce execution time Jeevan B
2020-12-18  7:23 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-12-18  8:49 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

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