[Uboot-stm32] [PATCH v4 6/9] video: Only dcache flush damaged lines
Simon Glass
sjg at chromium.org
Sat Jan 7 00:13:34 UTC 2023
On Tue, 3 Jan 2023 at 14:50, Alexander Graf <agraf at csgraf.de> wrote:
>
> Now that we have a damage area tells us which parts of the frame buffer
> actually need updating, let's only dcache flush those on video_sync()
> calls. With this optimization in place, frame buffer updates - especially
> on large screen such as 4k displays - speed up significantly.
>
> Signed-off-by: Alexander Graf <agraf at csgraf.de>
> Reported-by: Da Xue <da at libre.computer>
>
> ---
>
> v1 -> v2:
>
> - Fix dcache range; we were flushing too much before
> - Remove ifdefs
>
> v3 -> v4:
>
> - Simplify first damage logic
> ---
> drivers/video/video-uclass.c | 45 +++++++++++++++++++++++++++++-------
> 1 file changed, 37 insertions(+), 8 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the Uboot-stm32
mailing list