kms_flip: fix seq_step for 2xcrtc subtests

This also raises the absolute wait-for-vblank sequence step from 5 to
10, just to make it consistent with the corresponding 1x subtests.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69161
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Imre Deak 2013-12-09 17:28:50 +02:00
parent f034817b40
commit 2c6c4cf2a1

View File

@ -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);