[igt-dev] [PATCH v7 06/14] fb: Fix ARGB8888 color depth

Maxime Ripard maxime.ripard at bootlin.com
Tue Sep 11 08:47:33 UTC 2018


The ARGB8888 has been listed as having a 32 bits depth, while it actually
is a 24 bits format. Fix this.

Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
---
 lib/igt_fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 4f63e0335f86..624fddbd465b 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -80,7 +80,7 @@ static struct format_desc_struct {
 	  .cairo_id = CAIRO_FORMAT_RGB30,
 	  .num_planes = 1, .plane_bpp = { 32, },
 	},
-	{ .name = "ARGB8888", .depth = 32, .drm_id = DRM_FORMAT_ARGB8888,
+	{ .name = "ARGB8888", .depth = 24, .drm_id = DRM_FORMAT_ARGB8888,
 	  .cairo_id = CAIRO_FORMAT_ARGB32,
 	  .num_planes = 1, .plane_bpp = { 32, },
 	},
-- 
git-series 0.9.1


More information about the igt-dev mailing list