[igt-dev] [PATCH v6 05/13] fb: Fix ARGB8888 color depth

Ville Syrjälä ville.syrjala at linux.intel.com
Fri Aug 31 13:42:18 UTC 2018


On Fri, Aug 31, 2018 at 03:12:14PM +0200, Maxime Ripard wrote:
> The ARGB8888 has been listed as having a 32 bits depth, while it actually
> is a 24 bits format. Fix this.

I think 32 is the more usual definition for 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 9aee02c35c16..7d46cfdb45d8 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

-- 
Ville Syrjälä
Intel


More information about the igt-dev mailing list