summaryrefslogtreecommitdiff
path: root/tests/kms_atomic_transition.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2016-11-29 14:27:47 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2016-11-29 14:30:13 +0100
commitfd893f4cbbce94d3321364fe8e752e1ba4ed19fc (patch)
tree9a00e6d1be9ac9dcb1ff58faa7886f00c23f2b7c /tests/kms_atomic_transition.c
parent0eef0402cf6d5ce4cc03ce026e0e5a829c56b13c (diff)
kms_atomic_transition: Only run tests on valid pipes.
Fixes hangs on systems with less pipes, oops! Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_atomic_transition.c')
-rw-r--r--tests/kms_atomic_transition.c2
1 files changed, 1 insertions, 1 deletions
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;