[PATCH i-g-t] tests/kms_histogram: Add vblank wait to get histogram interrupts
Mohammed Thasleem
mohammed.thasleem at intel.com
Wed Nov 13 17:54:00 UTC 2024
Add igt wait for 3 vblank count to get histogram interrupt.
Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
---
tests/kms_histogram.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/kms_histogram.c b/tests/kms_histogram.c
index b2bd777ab..5dc02d26b 100644
--- a/tests/kms_histogram.c
+++ b/tests/kms_histogram.c
@@ -226,6 +226,7 @@ static void flip_fb(data_t *data, enum pipe pipe, igt_output_t *output, struct i
{
igt_plane_set_fb(igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY), fb);
igt_display_commit2(&data->display, COMMIT_ATOMIC);
+ igt_wait_for_vblank_count(data->drm_fd, data->display.pipes[pipe].crtc_offset, 3);
}
static void prepare_pipe(data_t *data, enum pipe pipe, igt_output_t *output, bool color_fb)
--
2.25.1
More information about the igt-dev
mailing list