[Intel-gfx] [PATCH igt 8/8] test/kms_addfb_basic: tolerate absence of 8-bit format
Ulrich Hecht
ulrich.hecht+renesas at gmail.com
Thu Mar 15 14:45:44 UTC 2018
Ignores failure to add DRM_FORMAT_C8 frame buffer; some devices do not
support any 8-bit format.
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas at gmail.com>
---
tests/kms_addfb_basic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_addfb_basic.c b/tests/kms_addfb_basic.c
index d1da718..db79827 100644
--- a/tests/kms_addfb_basic.c
+++ b/tests/kms_addfb_basic.c
@@ -273,8 +273,8 @@ static void size_tests(int fd)
igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f_16) == 0);
igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_RMFB, &f_16.fb_id) == 0);
f.fb_id = 0;
- igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f_8) == 0);
- igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_RMFB, &f_8.fb_id) == 0);
+ if (drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f_8) == 0)
+ igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_RMFB, &f_8.fb_id) == 0);
f.fb_id = 0;
}
--
2.7.4
More information about the Intel-gfx
mailing list