kms_frontbuffer_tracking: improve checks for disabled features

Make sure the features are disabled and stay disabled. Otherwise we
could just wrongly think they are disabled while they are just in the
process of being enabled.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2015-07-10 17:55:42 -03:00
parent ca97e78455
commit 775fd77715

View File

@ -1390,13 +1390,13 @@ static int adjust_assertion_flags(const struct test_mode *t, int flags)
opt.fbc_check_compression) \
igt_assert(fbc_wait_for_compression()); \
} else if (flags_ & ASSERT_FBC_DISABLED) { \
igt_assert(fbc_wait_for_status(DISABLED)); \
igt_assert(!fbc_wait_for_status(ENABLED)); \
} \
\
if (flags_ & ASSERT_PSR_ENABLED) \
igt_assert(psr_wait_for_status(ENABLED)); \
else if (flags_ & ASSERT_PSR_DISABLED) \
igt_assert(psr_wait_for_status(DISABLED)); \
igt_assert(!psr_wait_for_status(ENABLED)); \
} else { \
/* Make sure we settle before continuing. */ \
sleep(1); \