]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: Allow a copy framebuffer with pre-allocated fb
authorSimon Glass <sjg@chromium.org>
Fri, 10 Mar 2023 20:47:17 +0000 (12:47 -0800)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 13 Mar 2023 12:53:01 +0000 (13:53 +0100)
commit315e36797723e8a191a1ae0ceac448f5c4f00aff
tree16268faa2699f1fe4db6fb818cb4436da2a9e3ee
parentf62229227ca24c0f491d02cf2ae69da7136abe18
video: Allow a copy framebuffer with pre-allocated fb

At present it is not possible for the video driver to use a pre-allocated
frame buffer (such as is done with EFI) with the copy framebuffer. This
can be useful to speed up the display.

Adjust the implementation so that copy_size can be set to the required
size, with this being allocated if the normal framebuffer size is 0.

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