From: Damien Lespiau Date: Tue, 4 Feb 2014 12:07:56 +0000 (+0000) Subject: kms_pipe_crc_basic: Use for_each_connected_output() X-Git-Tag: intel-gpu-tools-1.6~105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a260599b6f557b66346fcbcc81c54f0dc7382f9c;p=platform%2Fupstream%2Fintel-gpu-tools.git kms_pipe_crc_basic: Use for_each_connected_output() Signed-off-by: Damien Lespiau --- diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index fdec077..7d48ca6 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -81,16 +81,13 @@ static void test_read_crc(data_t *data, int pipe, unsigned flags) igt_display_t *display = &data->display; igt_pipe_crc_t *pipe_crc; igt_crc_t *crcs = NULL; - int valid_connectors = 0, i; + int valid_connectors = 0; + igt_output_t *output; - for (i = 0; i < display->n_outputs; i++) { - igt_output_t *output = &display->outputs[i]; + for_each_connected_output(display, output) { igt_plane_t *primary; drmModeModeInfo *mode; - if (!output->valid) - continue; - igt_output_set_pipe(output, pipe); fprintf(stdout, "%s: Testing connector %s using pipe %c\n",