summaryrefslogtreecommitdiff
path: root/tests/kms_frontbuffer_tracking.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-08-17 10:46:31 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-08-30 11:10:36 +0200
commit45f0ba252194c24175b38181eb8cc3c2a6c20587 (patch)
tree84d45e23adedae36e61b6faf7cdd54cbbb512e74 /tests/kms_frontbuffer_tracking.c
parent6feed199d8564f775e26f3cc631b74d56ba1b5c1 (diff)
tests/kms_frontbuffer_tracking: Don't unset mode after reading CRC
Until the previous commit we had to disable the mode after reading CRC because otherwise we might not have been enable features correctly. Now we can just stage the disable without applying it, so each subtest can set its desired mode and igt_display will update the state as required. Behavior with legacy PSR: - Modeset enable, read CRC, enable legacy PSR switch, disable CRTC if using legacy PSR by calling igt_display_commit. Next enable CRTC will enable PSR. Behavior with debugfs PSR: - Modeset enable - Read CRC - Enable debugfs PSR switch. PSR enabled. - Next commit will be done by test, which can disable the mode or set a mode. The latter case will be a compatible mode, in which case we avoid the modeset. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Diffstat (limited to 'tests/kms_frontbuffer_tracking.c')
-rw-r--r--tests/kms_frontbuffer_tracking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index a570f93a..921aaffc 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1220,7 +1220,7 @@ static void init_blue_crc(enum pixel_format format)
print_crc("Blue CRC: ", &blue_crcs[format].crc);
- unset_all_crtcs();
+ igt_display_reset(&drm.display);
igt_remove_fb(drm.fd, &blue);
@@ -1272,7 +1272,7 @@ static void init_crcs(enum pixel_format format,
print_crc("", &pattern->crcs[format][r]);
}
- unset_all_crtcs();
+ igt_display_reset(&drm.display);
for (r = 0; r < pattern->n_rects; r++)
igt_remove_fb(drm.fd, &tmp_fbs[r]);