sandbox: video: Support 8bpp depth
authorSimon Glass <sjg@chromium.org>
Fri, 19 Nov 2021 20:23:45 +0000 (13:23 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sun, 26 Dec 2021 22:02:19 +0000 (23:02 +0100)
commit0fe5e9481e8ad39393523a23ebb090a249da18b7
tree4841fc25d1ba69ba86858840bfad0eb53d7b5cae
parentbc0abd80b3c2d395a0245d4e1ce4f8f445f79cde
sandbox: video: Support 8bpp depth

At present sandbox only supports 16 and 32bpp depths, since those are the
easy ones with SDL.

We can support other depths by manually converting the pixel formats. Add
support for this, to enable an 8ppp (monochrome) format.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/sdl.c
drivers/video/sandbox_sdl.c