[igt-dev] [PATCH i-g-t] tests/kms_sequence: Modify the vblank verification condition

Nidhi Gupta nidhi1.gupta at intel.com
Mon May 8 03:46:05 UTC 2023


For some displapys we've had one extra vblank in same time
interval,it means that there's no missing vblanks, which
confirms everything gets out to the screen as expected and
there is no failure, test should pass in such cases.

Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
 tests/kms_sequence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_sequence.c b/tests/kms_sequence.c
index c8a3d6bb..34448dbf 100644
--- a/tests/kms_sequence.c
+++ b/tests/kms_sequence.c
@@ -224,7 +224,7 @@ static void sequence_queue(data_t *data, int fd, int nchildren)
 		cqs.flags = 0;
 		cqs.sequence = target;
 		igt_assert_eq(crtc_queue_sequence(fd, &cqs), 0);
-		igt_assert_eq(cqs.sequence, target);
+		igt_assert(cqs.sequence >= target);
 	}
 
 	for (n = 0; n < total; n++) {
-- 
2.39.0



More information about the igt-dev mailing list