summaryrefslogtreecommitdiff
path: root/tests/kms_rotation_crc.c
diff options
context:
space:
mode:
authorJeevan B <jeevan.b@intel.com>2021-01-29 10:11:52 +0530
committerKunal Joshi <kunal1.joshi@intel.com>2021-02-01 10:47:40 +0530
commitf896f20fad550576a886f0f48eb8954f2d0d71fb (patch)
treeb20582475c7481b353512a5141b16777f68d3cfc /tests/kms_rotation_crc.c
parente02612921a4e95aef3a368e7468f4337c9dcee7d (diff)
tests/kms_rotation_crc: reduce execution time
Restricting the execution to 2 pipes with this change we see 50% improvement in time efficiency. v2: Updated commit message v3: Updated check condition Signed-off-by: Jeevan B <jeevan.b@intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r--tests/kms_rotation_crc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index 33a97cca..e7072e20 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -405,6 +405,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 pipe_count = 0;
if (plane_type == DRM_PLANE_TYPE_CURSOR)
igt_require(display->has_cursor_plane);
@@ -421,6 +422,11 @@ static void test_plane_rotation(data_t *data, int plane_type, bool test_bad_form
if (IS_CHERRYVIEW(data->devid) && pipe != PIPE_B)
continue;
+ /* restricting the execution to 2 pipes to reduce execution time*/
+ if (pipe_count == 2 && !data->extended)
+ break;
+ pipe_count++;
+
igt_output_set_pipe(output, pipe);
plane = igt_output_get_plane_type(output, plane_type);