diff options
author | Simon Glass <sjg@chromium.org> | 2020-07-02 21:12:22 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-07-09 12:33:24 +0800 |
commit | 138dfea86ff2b7eda936043b2acc734a1425aeaa (patch) | |
tree | 229105198978d549ca856439846193bd0cfe761d /drivers/video | |
parent | 6efa809dde1d33a3576743bafefc9ec5abdfa41c (diff) |
video: Clear the copy framebuffer when clearing the screen
Update video_clear() to also sync to the copy framebuffer.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/video-uclass.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 0c80fd5bfe..4ddd8bc1db 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -95,6 +95,7 @@ int video_reserve(ulong *addrp) int video_clear(struct udevice *dev) { struct video_priv *priv = dev_get_uclass_priv(dev); + int ret; switch (priv->bpix) { case VIDEO_BPP16: @@ -119,6 +120,9 @@ int video_clear(struct udevice *dev) memset(priv->fb, priv->colour_bg, priv->fb_size); break; } + ret = video_sync_copy(dev, priv->fb, priv->fb + priv->fb_size); + if (ret) + return ret; return 0; } |