[igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix to get a valid config

Bhanuprakash Modem bhanuprakash.modem at intel.com
Fri Aug 6 09:10:28 UTC 2021


CRTCs in this test will be modesetted one-by-one, we won't
get a failure sice each connector has its own CRTC.

Cc: Imre Deak <imre.deak at intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/kms_setmode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
index 89220b83e..11bce1da0 100644
--- a/tests/kms_setmode.c
+++ b/tests/kms_setmode.c
@@ -361,7 +361,7 @@ static void setup_crtcs(const struct test_config *tconf,
 	}
 	for (i = 0; i < resources->count_encoders; i++)
 		if (encoder_usage_count[i] > 1 &&
-				!!(tconf->flags & TEST_SINGLE_CRTC_CLONE))
+				!!(tconf->flags & (TEST_SINGLE_CRTC_CLONE | TEST_TIMINGS))
 			config_valid = false;
 
 	*crtc_count_ret = crtc_count;
-- 
2.32.0



More information about the igt-dev mailing list