[igt-dev] [i-g-t] tests/kms_rotation_crc: reduce execution time
Jeevan B
jeevan.b at intel.com
Fri Dec 18 06:07:13 UTC 2020
Restricting the execution to 2 pipes.
Signed-off-by: Jeevan B <jeevan.b at 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
More information about the igt-dev
mailing list