Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/kms_async_flip: Reduce the clobbering area used for CRC test
@ 2024-02-08 12:10 Vandita Kulkarni
  2024-02-08 14:08 ` Juha-Pekka Heikkila
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Vandita Kulkarni @ 2024-02-08 12:10 UTC (permalink / raw)
  To: igt-dev; +Cc: ville.syrjala, karthik.b.s, juha-pekka.heikkila, Vandita Kulkarni

On some platforms wc_mmap write takes longer to paint the fb,
which we are using to clobber the already scanned buffer for
CRC. Hence reducing the clobbered area.

Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
---
 tests/kms_async_flips.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index a0349fa03..2e5960943 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -589,7 +589,7 @@ static void test_crc(data_t *data)
 
 	while (clock_ms() - start < 2000) {
 		/* fill the next fb with the expected color */
-		paint_fb(data, &data->bufs[frame], 1, height, 0xff0000ff);
+		paint_fb(data, &data->bufs[frame], 10, 10, 0xff0000ff);
 
 		data->flip_pending = true;
 		ret = drmModePageFlip(data->drm_fd, data->crtc_id, data->bufs[frame].fb_id,
@@ -600,7 +600,7 @@ static void test_crc(data_t *data)
 
 		/* clobber the previous fb which should no longer be scanned out */
 		frame = !frame;
-		paint_fb(data, &data->bufs[frame], 1, height, rand());
+		paint_fb(data, &data->bufs[frame], 10, 10, rand());
 	}
 
 	igt_pipe_crc_stop(data->pipe_crc);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-03-15  6:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-08 12:10 [PATCH i-g-t] tests/kms_async_flip: Reduce the clobbering area used for CRC test Vandita Kulkarni
2024-02-08 14:08 ` Juha-Pekka Heikkila
2024-02-08 16:03   ` Kulkarni, Vandita
2024-02-08 17:12     ` Ville Syrjälä
2024-03-15  6:21       ` Kulkarni, Vandita
2024-02-08 16:08 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-02-08 17:03 ` ✓ CI.xeBAT: " Patchwork
2024-02-08 18:05 ` ✗ Fi.CI.IGT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox