[Intel-gfx] [PATCH i-g-t 3/4] tests/kms_flip: Modeset pipes in reverse order

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Wed Nov 11 09:32:47 PST 2015


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

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ä <ville.syrjala at linux.intel.com>
---
 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 632f264..23dadad 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -869,7 +869,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,
-- 
2.4.10



More information about the Intel-gfx mailing list