OSDN Git Service

drm/mcde: Improve pixel fetcher FIFO depth setting
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 8 Aug 2020 22:31:19 +0000 (00:31 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Aug 2020 14:39:08 +0000 (16:39 +0200)
commit44c3867a56e3cdda4b7ea4e4983c4fdafd45b3c9
tree4527a25b68a53b8a2324ac5907ff58e4d9992da4
parent709c27730a11d6681297d733eb8ee18166e9c38a
drm/mcde: Improve pixel fetcher FIFO depth setting

The pixel fetcher FIFO depth was just hardcoded to 48
which works fine as long as the framebuffer is 32BPP
and the DSI output is RGB888.

We will need more elaborate handling for some buffer
formats and displays, so start to improve this function
by setting reasonable defaults for 32, 24 and 16 BPP
framebuffers.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: newbytee@protonmail.com
Cc: Stephan Gerhold <stephan@gerhold.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20200808223122.1492124-1-linus.walleij@linaro.org
drivers/gpu/drm/mcde/mcde_display.c