flip_test: add wf-vblank test for expired sequence
authorImre Deak <imre.deak@intel.com>
Tue, 23 Oct 2012 09:07:52 +0000 (12:07 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Oct 2012 10:45:06 +0000 (12:45 +0200)
commitb28caa0ac0fc7ae187100d0a79173ab11bb52128
treebcb0b8aed7e8fc4d451ac311f46067a1c6d2e613
parentc7dd1dcdd9b04cf8aae12c59091497d71fe54a15
flip_test: add wf-vblank test for expired sequence

In v2:
- Wait for the seq that just completed (current_seq) not last_seq - 1.
- Do an equality check for ts and seq instead of >=. The previous
  issue didn't let us do this before.
- Simplify the condition when we do an "expired sequence" check by
  only using the last flip event as a reference.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/flip_test.c