From a09880d1c38343148e824b6a54db3046fb32986d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Tue, 10 Nov 2015 19:22:11 +0200 Subject: [PATCH] tests/kms_flip: Modeset pipes in reverse order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make more multi-pipe tests run on IVB, do the modesets in the reverse order (ie. pipe C first, pipe A last). This way pipe B can't reserve the 2 shared FDI lanes before pipe C is set up. Signed-off-by: Ville Syrjälä --- tests/kms_flip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 8bba1218..c1ff2e02 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -853,7 +853,7 @@ static int set_mode(struct test_output *o, uint32_t fb, int x, int y) { int n; - for (n = 0; n < o->count; n++) { + for (n = o->count - 1; n >= 0; n--) { if (fb == 0) { int ret = drmModeSetCrtc(drm_fd, o->_crtc[n], 0, 0, 0,