[igt-dev] [PATCH v3 04/11] fb: Add more formats
Maxime Ripard
maxime.ripard at bootlin.com
Thu May 24 14:24:43 UTC 2018
We're going to need some DRM formats, and we're going to need the igt_fb
code to handle them. Since it relies on the format_desc structure to map
the DRM fourcc to the pixman and cairo formats, we need to add these new
formats to that structure.
Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
---
lib/igt_fb.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index e5e66f7df7f5..7ae3dbcab5f1 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -70,10 +70,16 @@ 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(RGB888, INVALID, r8g8b8, 24, 24),
+ DF(BGR565, INVALID, b5g6r5, 16, 16),
+ DF(BGR888, INVALID, b8g8r8, 24, 24),
+ DF(RGB888, INVALID, r8g8b8, 24, 24),
DF(XRGB8888, RGB24, x8r8g8b8, 32, 24),
+ DF(XBGR8888, INVALID, x8b8g8r8, 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