From d1bd9c6ad6f3482bbccf4aa6417dd449e9efbe39 Mon Sep 17 00:00:00 2001 From: Nicholas Kazlauskas Date: Mon, 28 Jan 2019 10:44:18 -0500 Subject: tests: Add variable refresh rate tests There are 3 tests for basic variable refresh rate functionality. The tests measure flipping at the average between the current mode refresh rate and the minimum supported variable refresh rate. It tests that VRR is enabled and that the difference between flip timestamps converges to the requested rate. It also tests this under both S3 and DPMS. Potential ideas for future tests: - Test behavior inside VRR range with a stepping test - Test behavior outside of VRR range - Multi-monitor (limited by no async pageflips in DRM atomic API) Cc: Harry Wentland Cc: Leo Li Cc: Manasi Navare Signed-off-by: Nicholas Kazlauskas Reviewed-by: Harry Wentland --- lib/igt_kms.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/igt_kms.h') diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 4a7c3c97..679d4e84 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -104,6 +104,7 @@ enum igt_atomic_crtc_properties { IGT_CRTC_MODE_ID, IGT_CRTC_ACTIVE, IGT_CRTC_OUT_FENCE_PTR, + IGT_CRTC_VRR_ENABLED, IGT_NUM_CRTC_PROPS }; @@ -121,6 +122,7 @@ enum igt_atomic_connector_properties { IGT_CONNECTOR_DPMS, IGT_CONNECTOR_BROADCAST_RGB, IGT_CONNECTOR_CONTENT_PROTECTION, + IGT_CONNECTOR_VRR_CAPABLE, IGT_NUM_CONNECTOR_PROPS }; -- cgit v1.2.3