Skip to content
  • Nicholas Kazlauskas's avatar
    tests: Add variable refresh rate tests · d1bd9c6a
    Nicholas Kazlauskas authored and Harry Wentland's avatar Harry Wentland committed
    
    
    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 <harry.wentland@amd.com>
    Cc: Leo Li <sunpeng.li@amd.com>
    Cc: Manasi Navare <manasi.d.navare@intel.com>
    Signed-off-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
    Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
    d1bd9c6a