Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx> --- tests/kms_rotation_crc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 58852c2..ae0ca21 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -146,7 +146,7 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane) { igt_display_t *display = &data->display; igt_output_t *output; - int p; + enum pipe pipe; int valid_tests = 0; igt_crc_t crc_output; @@ -155,8 +155,8 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane) for_each_connected_output(display, output) { data->output = output; - for (p = 0; p < igt_display_get_n_pipes(display); p++) { - if (!prepare_crtc(data, p)) + for_each_pipe(display, pipe) { + if (!prepare_crtc(data, pipe)) continue; sleep(2); -- 1.8.3.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx