[igt-dev] [PATCH i-g-t] igt/kms_frontbuffer_tracking: Skip tests if FBC was disabled

Marta Lofstedt marta.lofstedt at intel.com
Tue Mar 6 09:24:57 UTC 2018


If FBC has been disabled in the system due to previous
malfuction, we would save time on CI if we bail out early.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105359
Signed-off-by: Marta Lofstedt <marta.lofstedt at intel.com>
---
 tests/kms_frontbuffer_tracking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 43384801..9cddc4f6 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1593,7 +1593,7 @@ static bool fbc_supported_on_chipset(void)
 	char buf[128];
 
 	debugfs_read("i915_fbc_status", buf);
-	if (*buf == '\0')
+	if (*buf == '\0' || strstr(buf, "FBC disabled: "))
 		return false;
 
 	return !strstr(buf, "FBC unsupported on this chipset\n");
-- 
2.11.0



More information about the igt-dev mailing list