[PATCH i-g-t] tests/kms_plane_lowres: Test only with one plane

Mika Kahola mika.kahola at intel.com
Thu Jan 16 14:09:22 UTC 2020


The test is intended to test resolution changes from higher to
lower and back. We can do this with only one plane and we don't
need to run through all planes. This will save significant amount
of test execution time.

Signed-off-by: Mika Kahola <mika.kahola at intel.com>
---
 tests/kms_plane_lowres.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/kms_plane_lowres.c b/tests/kms_plane_lowres.c
index 4c3f5636..ee6fb1fb 100644
--- a/tests/kms_plane_lowres.c
+++ b/tests/kms_plane_lowres.c
@@ -208,7 +208,8 @@ test_planes_on_pipe_with_output(data_t *data, enum pipe pipe,
 		igt_assert_crc_equal(&data->ref_lowres.crc, &crc_lowres);
 
 		igt_plane_set_fb(plane, NULL);
-		tested++;
+		if (tested++)
+			break;
 	}
 
 	igt_pipe_crc_free(pipe_crc);
-- 
2.17.1



More information about the Intel-gfx-trybot mailing list