tests/kms_flip: Move EBUSY to a new busy-flip subtest
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 28 May 2014 17:05:59 +0000 (20:05 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 Jun 2014 17:16:01 +0000 (20:16 +0300)
commit11e62a3927e415f88dae3519578d9bba8def3128
tree7653d163efffdaf5a01bdb8fd7b16fda5d912944
parentddf92db9147375a4d0fc3ee861519bc1d6b0214b
tests/kms_flip: Move EBUSY to a new busy-flip subtest

The EBUSY checking is very fragile currently in case there's any kind
extra delay in the test loop. At least the flip-vs-rmfb fails reliably
on my IVB.

So to make the test less fragile remove the EBUSY check from all the
current flip tests, and instead add a specific busy-flip test. To
better guarantee that we get the EBUSY add a blocking vblank wait just
before we issue the first flip. This maximizes the time we have to
submit two flips during one frame.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
tests/kms_flip.c