mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-24 02:16:03 +00:00
kms_psr_sink_crc: Add suspend/resume sub test.
Although kms_frontbuffer_tracking already has psr-suspend testcase this one here can complement it by testing different combination and mainly covering 2 different cases individually: 1. wait-for-psr, suspend-resume tehn run 1 operation. 2. suspend-resume, wait-for-psr then run 1 operation. v2: Remove no-suspend option since this should be done with piglit if necessary for now. v3: argh! remove remaining no-suspend checks... Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
63980babcf
commit
7bd31d090e
@ -626,6 +626,30 @@ int main(int argc, char *argv[])
|
||||
test_cleanup(&data);
|
||||
}
|
||||
|
||||
igt_subtest_f("suspend_psr_active") {
|
||||
data.test_plane = PRIMARY;
|
||||
data.op = PAGE_FLIP;
|
||||
setup_test_plane(&data);
|
||||
igt_assert(wait_psr_entry(&data));
|
||||
|
||||
igt_system_suspend_autoresume();
|
||||
|
||||
run_test(&data);
|
||||
test_cleanup(&data);
|
||||
}
|
||||
|
||||
igt_subtest_f("suspend_psr_exit") {
|
||||
data.test_plane = CURSOR;
|
||||
data.op = PLANE_ONOFF;
|
||||
setup_test_plane(&data);
|
||||
|
||||
igt_system_suspend_autoresume();
|
||||
|
||||
igt_assert(wait_psr_entry(&data));
|
||||
run_test(&data);
|
||||
test_cleanup(&data);
|
||||
}
|
||||
|
||||
igt_fixture {
|
||||
drm_intel_bufmgr_destroy(data.bufmgr);
|
||||
display_fini(&data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user