summaryrefslogtreecommitdiff
path: root/tests/kms_fbcon_fbt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kms_fbcon_fbt.c')
-rw-r--r--tests/kms_fbcon_fbt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index 51f11728..1b236f8b 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -87,6 +87,9 @@ static bool fbc_supported_on_chipset(int fd)
char buf[128];
igt_debugfs_read(fd, "i915_fbc_status", buf);
+ if (*buf == '\0') /* !HAS_FBC -> -ENODEV*/
+ return false;
+
return !strstr(buf, "FBC unsupported on this chipset\n");
}