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 <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2015-08-14 16:08:07 -03:00
parent f4db3b1884
commit 64590c7b76

View File

@ -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)