> Date: Mon, 30 Jul 2018 15:09:58 +0200
> From: Frederic Cambus <[email protected]>
>
> Hi tech@,
>
> Here is a diff to display color depth alongside resolution when
> attaching simplefb(4).
>
> Compile tested only, the only arm64 device I own is headless.
>
> Comments? OK?
ok kettenis@
> Index: sys/dev/fdt/simplefb.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/fdt/simplefb.c,v
> retrieving revision 1.3
> diff -u -p -r1.3 simplefb.c
> --- sys/dev/fdt/simplefb.c 18 Dec 2017 10:13:45 -0000 1.3
> +++ sys/dev/fdt/simplefb.c 29 Jul 2018 21:15:13 -0000
> @@ -154,7 +154,7 @@ simplefb_attach(struct device *parent, s
> ri->ri_flg &= ~RI_CLEAR;
> }
>
> - printf(": %dx%d\n", ri->ri_width, ri->ri_height);
> + printf(": %dx%d, %dbpp\n", ri->ri_width, ri->ri_height, ri->ri_depth);
>
> ri->ri_flg |= RI_VCONS;
> rasops_init(ri, SIMPLEFB_HEIGHT, SIMPLEFB_WIDTH);
>
>