diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-07-05 12:53:05 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-07-26 14:49:59 +0200 |
commit | 5af520a1a0aec04b020ad808fdb90de49bd0e27b (patch) | |
tree | 37c3309cc7e9304b5b44bcffc0f7191d70d1497e /tests/kms_crtc_background_color.c | |
parent | 0794ebefe1b9a1590f218b4055a83685ad8cb7eb (diff) |
tests/kms: Clean up more users of unassigned pipes.
Use for_each_pipe_with_valid_output instead.
This may increase test time slightly on the affected tests, because now
outputs will be tested on every pipe instead of the first pipe. This
will increase test coverage to all usable pipes though, so it shouldn't
be an issue.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Diffstat (limited to 'tests/kms_crtc_background_color.c')
-rw-r--r-- | tests/kms_crtc_background_color.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/kms_crtc_background_color.c b/tests/kms_crtc_background_color.c index b496625c..b97c1142 100644 --- a/tests/kms_crtc_background_color.c +++ b/tests/kms_crtc_background_color.c @@ -133,10 +133,9 @@ static void test_crtc_background(data_t *data) igt_require(data->display.has_universal_planes); - for_each_connected_output(display, output) { + for_each_pipe_with_valid_output(display, pipe, output) { igt_plane_t *plane; - pipe = output->config.pipe; igt_output_set_pipe(output, pipe); plane = igt_output_get_plane(output, IGT_PLANE_PRIMARY); |