diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-10-22 18:38:50 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-10-23 15:40:09 +0300 |
commit | 47db6fbd99f1c8b127269b124948da7049298963 (patch) | |
tree | 8e8976d5c9646ce7eb76494363335f53cab2b216 /tests/kms_pipe_crc_basic.c | |
parent | 46ec33e847eef3292a2f3b4f4a037cfb161cfeee (diff) |
tests/kms_pipe_crc_basic: Skip invalid pipe/port combos
Don't try to test invaliud pipe/port combos. Fixes the test on
VLV w/ DSI since the pipe<->DSI port mapping is fixed. Should also
fix other platforms with similar restrictions.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_pipe_crc_basic.c')
-rw-r--r-- | tests/kms_pipe_crc_basic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index a6ebf36d..a3292c22 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -126,6 +126,12 @@ test_read_crc_for_output(data_t *data, int pipe, igt_output_t *output, char *crc_str; igt_output_set_pipe(output, pipe); + igt_display_commit(display); + + if (!output->valid) { + igt_output_set_pipe(output, PIPE_ANY); + return 0; + } igt_debug("Clearing the fb with color (%.02lf,%.02lf,%.02lf)\n", colors[c].r, colors[c].g, colors[c].b); |