[igt-dev] [PATCH i-g-t 2/2] tests/kms_plane_lowres: Reset display before testing
Mika Kahola
mika.kahola at intel.com
Tue Aug 17 13:45:23 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_lowres.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/kms_plane_lowres.c b/tests/kms_plane_lowres.c
index 39c7abbe..bf24c201 100644
--- a/tests/kms_plane_lowres.c
+++ b/tests/kms_plane_lowres.c
@@ -166,6 +166,8 @@ test_planes_on_pipe_with_output(data_t *data, igt_plane_t *plane, uint64_t modif
igt_plane_t *primary;
igt_crc_t crc_lowres, crc_hires1, crc_hires2;
+ igt_display_reset(&data->display);
+
igt_output_set_pipe(data->output, data->pipe);
primary = compatible_main_plane(plane, data->output, data->devid);
--
2.27.0
More information about the igt-dev
mailing list