From fd893f4cbbce94d3321364fe8e752e1ba4ed19fc Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 29 Nov 2016 14:27:47 +0100 Subject: kms_atomic_transition: Only run tests on valid pipes. Fixes hangs on systems with less pipes, oops! Signed-off-by: Maarten Lankhorst --- tests/kms_atomic_transition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_atomic_transition.c') diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c index a8afc3a0..851ffc95 100644 --- a/tests/kms_atomic_transition.c +++ b/tests/kms_atomic_transition.c @@ -485,7 +485,7 @@ static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblock { struct igt_fb fbs[2]; int i, j; - unsigned iter_max = 1 << I915_MAX_PIPES; + unsigned iter_max = 1 << display->n_pipes; igt_pipe_crc_t *pipe_crcs[I915_MAX_PIPES]; igt_output_t *output; unsigned width = 0, height = 0; -- cgit v1.2.3