]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mcde: Fix RGB/BGR bug
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Nov 2020 17:54:13 +0000 (18:54 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 23 Nov 2020 23:07:04 +0000 (00:07 +0100)
commit4fee71769c84d36dc81a9a92d41abe27e8bac8eb
tree2fa9bc82a3eaa50fba6be9c260b40b482fd69788
parent8c46f6c8960253ecf2639492d1d8d949783465d0
drm/mcde: Fix RGB/BGR bug

I was confused when the graphics came out with blue
penguins on the DPI panel.

It turns out that the so-called "packed RGB666" mode
on the DSI formatter is incorrect: this mode is the
actual RGB888 mode, and the mode called RGB888 is
BGR888.

The claims that the MCDE had inverse RGB/BGR buffer
formats was wrong, so correct this and the buggy
register and everything is much more consistent, and
graphics look good on all targets, both DPI and
DSI.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Cc: phone-devel@vger.kernel.org
Cc: Stephan Gerhold <stephan@gerhold.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20201117175413.869871-1-linus.walleij@linaro.org
drivers/gpu/drm/mcde/mcde_display.c
drivers/gpu/drm/mcde/mcde_display_regs.h