[igt-dev] [PATCH i-g-t 04/12] fb: Add more formats
Maxime Ripard
maxime.ripard at bootlin.com
Tue Apr 24 07:46:38 UTC 2018
We're going to need some DRM formats that are not defined in the
format_desc_struct. Make sure we add them.
Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
---
lib/igt_fb.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 1de6f9f6c275..c6e6b0377ae5 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -70,10 +70,14 @@ static struct format_desc_struct {
int planes;
int plane_bpp[4];
} format_desc[] = {
+ DF(ARGB1555, INVALID, a1r5g5b5, 16, 16),
+ DF(XRGB1555, INVALID, x1r5g5b5, 16, 16),
DF(RGB565, RGB16_565, r5g6b5, 16, 16),
+ DF(BGR565, INVALID, b5g6r5, 16, 16),
//DF(RGB888, INVALID, r8g8b8, 24, 24),
DF(XRGB8888, RGB24, x8r8g8b8, 32, 24),
DF(XRGB2101010, RGB30, x2r10g10b10, 32, 30),
+ DF(ABGR8888, INVALID, a8b8g8r8, 32, 32),
DF(ARGB8888, ARGB32, a8r8g8b8, 32, 32),
DF(NV12, RGB24, invalid, 32, -1, 2, {8, 16}),
};
--
git-series 0.9.1
More information about the igt-dev
mailing list