summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Graf <[email protected]>2022-06-10 00:59:18 +0200
committerSimon Glass <[email protected]>2025-05-01 04:31:36 -0600
commit4b19425b35d1134a53ecbb58357128bd5096e784 (patch)
treed13d55c3f332a229384ba9b62ce58828ec6164b4
parent9ffa352c82285ef2d0d2312140e82e041ec8b9b4 (diff)
video: Add damage notification on bmp display
Let's report the video damage when we draw a bitmap on the screen. This way we can later lazily flush only relevant regions to hardware. Signed-off-by: Alexander Graf <[email protected]> Reported-by: Da Xue <[email protected]> Reviewed-by: Simon Glass <[email protected]> Link: https://lore.kernel.org/u-boot/[email protected]/
-rw-r--r--drivers/video/video_bmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c
index ad512d99a1b..78de9560792 100644
--- a/drivers/video/video_bmp.c
+++ b/drivers/video/video_bmp.c
@@ -459,6 +459,8 @@ int video_bmp_display(struct udevice *dev, ulong bmp_image, int x, int y,
break;
};
+ video_damage(dev, x, y, width, height);
+
/* Find the position of the top left of the image in the framebuffer */
fb = (uchar *)(priv->fb + y * priv->line_length + x * bpix / 8);
ret = video_sync_copy(dev, start, fb);