Message ID | 20171115193701.12781-3-krisman@collabora.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 1d26b8ddbf43..e161f4309439 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -1817,7 +1817,7 @@ void igt_display_require_output_on_pipe(igt_display_t *display, enum pipe pipe) { igt_output_t *output; - igt_skip_on_f(igt_display_get_n_pipes(display) < pipe, + igt_skip_on_f(pipe >= igt_display_get_n_pipes(display), "Pipe %s does not exist.\n", kmstest_pipe_name(pipe)); for_each_valid_output_on_pipe(display, pipe, output)