Message ID | 20200519231058.19945-12-sjg@chromium.org |
---|---|
State | Superseded |
Headers | show |
Series | x86: video: Speed up the framebuffer | expand |
On Tue, 19 May 2020 17:10:43 -0600 Simon Glass sjg at chromium.org wrote: > Update video_clear() to also sync to the copy framebuffer. > > Signed-off-by: Simon Glass <sjg at chromium.org> Reviewed-by: Anatolij Gustschin <agust at denx.de>
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 0c97377ea9..4d6f950eab 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -94,6 +94,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: @@ -118,6 +119,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; }
Update video_clear() to also sync to the copy framebuffer. Signed-off-by: Simon Glass <sjg at chromium.org> --- drivers/video/video-uclass.c | 4 ++++ 1 file changed, 4 insertions(+)