[igt-dev] [PATCH] correct validating config on enconder mask. Then mode setting can be run through with multiple displays.

Jasber Chen yipeng.chen at amd.com
Tue Mar 21 02:48:26 UTC 2023


From: Jasber Chen <yipeng.chen at amd.corp-partner.google.com>

Signed-off-by: yipeng.chen at amd.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 bfa10891..4e59f2aa 100644
--- a/tests/kms_setmode.c
+++ b/tests/kms_setmode.c
@@ -331,7 +331,7 @@ static void setup_crtcs(const struct test_config *tconf,
 
 			encoder_mask |= 1 << get_encoder_idx(resources,
 							     encoder);
-			config_valid &= !(encoder_mask &
+			config_valid &= !!(encoder_mask &
 					  ~encoder->possible_clones);
 
 			drmModeFreeEncoder(encoder);
-- 
2.25.1



More information about the igt-dev mailing list