Let's report the video damage when we fill parts of the screen. This
way we can later lazily flush only relevant regions to hardware.
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reported-by: Da Xue <da@libre.computer>
[Alper: Move from video_clear() to video_fill(), video_fill_part()]
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/u-boot/20230821135111.3558478-6-alpernebiyasak@gmail.com/
if (ret)
return ret;
+ video_damage(dev, xstart, ystart, xend - xstart, yend - ystart);
+
return 0;
}
if (ret)
return ret;
+ video_damage(dev, 0, 0, priv->xsize, priv->ysize);
+
return video_sync(dev, false);
}