[igt-dev] [PATCH i-g-t] HACK tests/kms_plane_multiple: add missed igt_display_commit2 after pipe change

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Fri Mar 8 11:29:15 UTC 2019


when pipe changes on output commit the change immediately
---
 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 617054d..958566f 100644
--- a/tests/kms_plane_multiple.c
+++ b/tests/kms_plane_multiple.c
@@ -92,6 +92,7 @@ static void test_fini(data_t *data, igt_output_t *output, int n_planes)
 
 	/* reset the constraint on the pipe */
 	igt_output_set_pipe(output, PIPE_ANY);
+	igt_display_commit2(&data->display, COMMIT_ATOMIC);
 
 	igt_pipe_crc_free(data->pipe_crc);
 	data->pipe_crc = NULL;
@@ -197,6 +198,7 @@ prepare_planes(data_t *data, enum pipe pipe_id, color_t *color,
 	int i;
 
 	igt_output_set_pipe(output, pipe_id);
+	igt_display_commit2(&data->display, COMMIT_ATOMIC);
 	primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
 	pipe = primary->pipe;
 
-- 
2.7.4



More information about the igt-dev mailing list