kms_cursor_crc: Fix the test on platforms where the pipe->port mapping has restrictions
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 Apr 2014 12:27:57 +0000 (15:27 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 Apr 2014 13:18:20 +0000 (16:18 +0300)
commita461515b334ebb7782ee15e31f943e7a6753d845
treef4507ee779cd1520711a188622f72bb00aaf2178
parent5b90833941f17d175204041c86ad84c6662e55df
kms_cursor_crc: Fix the test on platforms where the pipe->port mapping has restrictions

On gen2 for instance the LVDS port can only be fed from pipe B. Check
whether the combinations is valid before trying to run the test. Also
clean up the state back to PIPE_ANY properly so that following tests
can again go through all the combinations.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75131
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
tests/kms_cursor_crc.c