video: sandbox: Set a maximum frame-buffer size
authorSimon Glass <sjg@chromium.org>
Fri, 19 Nov 2021 20:23:48 +0000 (13:23 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sun, 26 Dec 2021 22:02:19 +0000 (23:02 +0100)
commit301af2388af36b62ddec08b547300f5b5464df47
treea3d9a932191a22daf3082608e90c50e68f75f035
parent4057e2772d043ecfa0efc4d16bd8ab664afb69a0
video: sandbox: Set a maximum frame-buffer size

If U-Boot starts with the frame buffer set to 16bpp but then runs a test
that uses 32bpp, there is not enough space. Update the driver to use the
maximum possible frame-buffer size, to avoid this.

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