From 64590c7b768dc8d8dd962f812d5ff5a39e7e8b54 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Fri, 14 Aug 2015 16:08:07 -0300 Subject: [PATCH] kms_frontbuffer_tracking: reduce the FBC wait timeout to 2s Just like we did for PSR, let's do it for FBC. FBC gets reenabled in just 50ms, so the 5000ms timeout is huge. On the other hand, we only pay the 5000ms timeout full price 9 times when running kms_frontbuffer_tracking --fbc-only, so this change shouldn't save too much time. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index d4dadcef..137ff40f 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -809,7 +809,7 @@ static bool fbc_is_compressing(void) static bool fbc_wait_for_compression(void) { - return igt_wait(fbc_is_compressing(), 5000, 1); + return igt_wait(fbc_is_compressing(), 2000, 1); } static void fbc_setup_compressing(void) @@ -834,7 +834,7 @@ static bool fbc_not_enough_stolen(void) static bool fbc_wait_until_enabled(void) { - return igt_wait(fbc_is_enabled(), 5000, 1); + return igt_wait(fbc_is_enabled(), 2000, 1); } static bool psr_wait_until_enabled(void)