Signed-off-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx> --- tests/kms_psr_sink_crc.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 331ac5b..9616b4c 100644 --- a/tests/kms_psr_sink_crc.c +++ b/tests/kms_psr_sink_crc.c @@ -534,6 +534,15 @@ static void setup_test_plane(data_t *data) igt_display_commit(&data->display); } +static void dpms_off_on(data_t data) +{ + kmstest_set_connector_dpms(data.drm_fd, data.output->config.connector, + DRM_MODE_DPMS_OFF); + sleep(1); + kmstest_set_connector_dpms(data.drm_fd, data.output->config.connector, + DRM_MODE_DPMS_ON); +} + static int opt_handler(int opt, int opt_index) { switch (opt) { @@ -633,6 +642,30 @@ int main(int argc, char *argv[]) test_cleanup(&data); } + igt_subtest_f("dpms_off_psr_active") { + data.test_plane = PRIMARY; + data.op = RENDER; + setup_test_plane(&data); + igt_assert(wait_psr_entry(&data)); + + dpms_off_on(data); + + run_test(&data); + test_cleanup(&data); + } + + igt_subtest_f("dpms_off_psr_exit") { + data.test_plane = SPRITE; + data.op = PLANE_ONOFF; + setup_test_plane(&data); + + dpms_off_on(data); + + igt_assert(wait_psr_entry(&data)); + run_test(&data); + test_cleanup(&data); + } + igt_fixture { drm_intel_bufmgr_destroy(data.bufmgr); display_fini(&data); -- 2.1.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx