[RFC PATCH 5/5] sandbox: video: Use partial updates for SDL display

Simon Glass sjg at chromium.org
Tue Aug 22 00:10:56 CEST 2023


On Mon, 21 Aug 2023 at 12:13, Alper Nebi Yasak <alpernebiyasak at gmail.com> wrote:
>
> Now that we have video damage tracking, try to reduce the SDL display
> work by copying only the updated regions onto the SDL texture instead of
> the entire framebuffer. We still have to do RenderClear and RenderCopy
> the whole texture onto the renderer, but that allegedly happens in the
> GPU.
>
> Signed-off-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>
> ---
> The second half of copy_to_texture is untested.
>
>  arch/sandbox/cpu/sdl.c         | 25 +++++++++++++++++--------
>  arch/sandbox/include/asm/sdl.h |  9 +++++++--
>  drivers/video/sandbox_sdl.c    | 16 +++++++++++++++-
>  3 files changed, 39 insertions(+), 11 deletions(-)
>

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


More information about the U-Boot mailing list