[igt-dev] [PATCH i-g-t 3/5] tests/kms_frontbuffer_tracking: Fix basic subtest
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Mon Mar 12 17:30:11 UTC 2018
When running the entire binary, we have touched features before running
the basic subtest. Restore them back to the defaults.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
tests/kms_frontbuffer_tracking.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 746f8d1f8a75..000f54eef408 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1218,9 +1218,6 @@ static void unset_all_crtcs(void)
static void disable_features(const struct test_mode *t)
{
- if (t->feature == FEATURE_DEFAULT)
- return;
-
fbc_set(0);
psr_set(0);
drrs_set(0);
@@ -1849,8 +1846,12 @@ static void set_region_for_test(const struct test_mode *t,
static void enable_features_for_test(const struct test_mode *t)
{
- if (t->feature == FEATURE_DEFAULT)
+ if (t->feature == FEATURE_DEFAULT) {
+ fbc_set(-1);
+ psr_set(-1);
+ drrs_set(-1);
return;
+ }
if (t->feature & FEATURE_FBC)
fbc_set(1);
--
2.16.2
More information about the igt-dev
mailing list