summaryrefslogtreecommitdiff
path: root/tests/kms_frontbuffer_tracking.c
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2019-01-11 16:48:45 -0800
committerJosé Roberto de Souza <jose.souza@intel.com>2019-01-22 14:09:12 -0800
commit13ac931a33f9ce43273af0232fa33ad122c3fa07 (patch)
treea774adeb973c4108b38b2ea1d3bbd9372118835c /tests/kms_frontbuffer_tracking.c
parent3f828a7a8cf22b5440372234b7814c4bd1b9315e (diff)
lib/psr: Add PSR2 support to the remaning psr functions
Add the mode parameter to psr_enable() and psr_sink_support() so PSR1 and PSR2 can be tested separated. For now all PSR tests will run only with PSR1 and the tests for PSR2 will come in the future. Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@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 ed9a039a..609f7b41 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1425,7 +1425,7 @@ static void setup_psr(void)
return;
}
- if (!psr_sink_support(drm.debugfs)) {
+ if (!psr_sink_support(drm.debugfs, PSR_MODE_1)) {
igt_info("Can't test PSR: not supported by sink.\n");
return;
}
@@ -1722,7 +1722,7 @@ static bool enable_features_for_test(const struct test_mode *t)
if (t->feature & FEATURE_FBC)
fbc_enable();
if (t->feature & FEATURE_PSR)
- ret = psr_enable(drm.debugfs);
+ ret = psr_enable(drm.debugfs, PSR_MODE_1);
if (t->feature & FEATURE_DRRS)
drrs_enable();