diff mbox

[igt] igt/kms_frontbuffer_tracking: Show FBC status at the start of the wait

Message ID 20171221205439.29593-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Wilson Dec. 21, 2017, 8:54 p.m. UTC
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/kms_frontbuffer_tracking.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 1601cab45..8b440dadc 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -927,6 +927,10 @@  static bool fbc_stride_not_supported(void)
 
 static bool fbc_wait_until_enabled(void)
 {
+	if (fbc_is_enabled())
+		return true;
+
+	fbc_print_status();
 	return igt_wait(fbc_is_enabled(), 2000, 1);
 }