From 14a8c9a6ac4dc3210e1a0d65607895607d0972fa Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Mon, 9 Dec 2013 17:28:50 +0200 Subject: [PATCH] kms_flip: fix seq_step for 2xcrtc subtests Signed-off-by: Imre Deak --- tests/kms_flip.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index e1a2e93..89175c9 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1262,11 +1262,17 @@ static void run_test_on_crtc_pair(struct test_output *o, wait_for_events(o); o->current_fb_id = 1; - o->flip_state.seq_step = 1; - if (o->flags & TEST_VBLANK_ABSOLUTE) - o->vblank_state.seq_step = 5; + if (o->flags & TEST_FLIP) + o->flip_state.seq_step = 1; else - o->vblank_state.seq_step = 1; + o->flip_state.seq_step = 0; + if (o->flags & TEST_VBLANK) + o->vblank_state.seq_step = 10; + else + o->vblank_state.seq_step = 0; + + /* We run the vblank and flip actions in parallel by default. */ + o->seq_step = max(o->vblank_state.seq_step, o->flip_state.seq_step); elapsed = event_loop(o, duration_ms); -- 1.8.4