OSDN Git Service

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)
commit77f512bde99ad1ebc88f094d18702fa9589c2206
tree2fa9bc82a3eaa50fba6be9c260b40b482fd69788
parent04295bc3362d4e4259cc48128c89657735768fbc
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