From 7df7e3bda6a206c15044dfd9804eddeee29d981b Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Thu, 21 Sep 2017 12:53:27 +0200 Subject: tests: Stop looking at plane private members Most of these tests have no reason to look at those members, so try other ways of getting the information. Signed-off-by: Maarten Lankhorst Reviewed-by: Mika Kahola --- tests/kms_cursor_legacy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/kms_cursor_legacy.c') diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c index ba7c3f51..65a001a9 100644 --- a/tests/kms_cursor_legacy.c +++ b/tests/kms_cursor_legacy.c @@ -784,7 +784,7 @@ static bool skip_on_unsupported_nonblocking_modeset(igt_display_t *display) /* Force the next state to update all crtc's, to synchronize with the nonblocking modeset. */ for_each_pipe(display, pipe) - display->pipes[pipe].mode_changed = true; + igt_pipe_refresh(display, pipe, false); return false; } @@ -971,8 +971,8 @@ static void two_screens_flip_vs_cursor(igt_display_t *display, int nloops, bool if (modeset) { /* wait for pending modeset and page flip to complete, to prevent -EBUSY */ - display->pipes[pipe].mode_changed = true; - display->pipes[pipe2].mode_changed = true; + igt_pipe_refresh(display, pipe, false); + igt_pipe_refresh(display, pipe2, false); igt_display_commit2(display, COMMIT_ATOMIC); } } -- cgit v1.2.3