git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ffa352
)
video: Add damage notification on bmp display
author
Alexander Graf
<agraf@csgraf.de>
Thu, 9 Jun 2022 22:59:18 +0000
(
00:59
+0200)
committer
Simon Glass
<sjg@chromium.org>
Thu, 1 May 2025 10:31:36 +0000
(
04:31
-0600)
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 <agraf@csgraf.de>
Reported-by: Da Xue <da@libre.computer>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link:
https://lore.kernel.org/u-boot/20230821135111.3558478-9-alpernebiyasak@gmail.com/
drivers/video/video_bmp.c
patch
|
blob
|
history
diff --git
a/drivers/video/video_bmp.c
b/drivers/video/video_bmp.c
index
ad512d9
..
78de956
100644
(file)
--- 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);