[igt-dev] [PATCH i-g-t 1/2] tests/kms_plane_multiple: Reset display before testing

Mika Kahola mika.kahola at intel.com
Tue Aug 17 13:45:22 UTC 2021


Reset display before entering teste execution. Sometimes,
display can be left on stale state and resetting display
cleans up the state.

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

diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c
index 45cabb50..25e694b8 100644
--- a/tests/kms_plane_multiple.c
+++ b/tests/kms_plane_multiple.c
@@ -68,6 +68,8 @@ struct {
  */
 static void test_init(data_t *data, enum pipe pipe, int n_planes)
 {
+	igt_display_reset(&data->display);
+
 	data->pipe_crc = igt_pipe_crc_new(data->drm_fd, pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
 
 	data->plane = calloc(n_planes, sizeof(*data->plane));
-- 
2.27.0



More information about the igt-dev mailing list