mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
d3533a8af4
Replace the combination of bpp and depth with a single color-mode
argument. Handle special cases in simpledrm and ofdrm. Hard-code
XRGB8888 as fallback format for cases where no given format works.
The color-mode argument accepts the same values as the kernel's video
parameter. These are mostly bpp values between 1 and 32. The exceptions
are 15, which has a color depth of 15 and a bpp value of 16; and 32,
which has a color depth of 24 and a bpp value of 32.
v4:
* add back lost test for bpp_specified (Maira)
* add Fixes tag (Daniel)
v3:
* fix ofdrm build (Maxime)
v2:
* minimize changes (Daniel)
* use drm_driver_legacy_fb_format() (Daniel)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Maíra Canal <mcanal@igalia.com> # vc4 and vkms
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Fixes:
|
||
---|---|---|
.. | ||
arcpgu.c | ||
bochs.c | ||
cirrus.c | ||
gm12u320.c | ||
hx8357d.c | ||
ili9163.c | ||
ili9225.c | ||
ili9341.c | ||
ili9486.c | ||
Kconfig | ||
Makefile | ||
mi0283qt.c | ||
ofdrm.c | ||
panel-mipi-dbi.c | ||
repaper.c | ||
simpledrm.c | ||
st7586.c | ||
st7735r.c |