[PATCH v5 06/13] vidconsole: Add damage notifications to all vidconsole drivers

Simon Glass sjg at chromium.org
Mon Aug 21 21:11:51 CEST 2023


On Mon, 21 Aug 2023 at 07:51, Alper Nebi Yasak <alpernebiyasak at gmail.com> wrote:
>
> From: Alexander Graf <agraf at csgraf.de>
>
> Now that we have a damage tracking API, let's populate damage done by
> vidconsole drivers. We try to declare as little memory as damaged as
> possible.
>
> Signed-off-by: Alexander Graf <agraf at csgraf.de>
> Reported-by: Da Xue <da at libre.computer>
> [Alper: Rebase for met->baseline, fontdata->height/width, make rotated
>         console_putc_xy() damages pass tests, edit patch message]
> Co-developed-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>
> Signed-off-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>
> ---
>
> Changes in v5:
> - Use met->baseline instead of priv->baseline
> - Use fontdata->height/width instead of VIDEO_FONT_HEIGHT/WIDTH
> - Update console_rotate.c video_damage() calls to pass video tests
> - Remove mention about not having minimal damage for console_rotate.c
>
> Changes in v2:
> - Fix ranges in truetype target
> - Limit rotate to necessary damage
>
>  drivers/video/console_normal.c   | 18 +++++++++++
>  drivers/video/console_rotate.c   | 54 ++++++++++++++++++++++++++++++++
>  drivers/video/console_truetype.c | 21 +++++++++++++
>  drivers/video/video-uclass.c     |  1 +
>  4 files changed, 94 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>

Suggest dropping the change to the final file


More information about the U-Boot mailing list