aboutsummaryrefslogtreecommitdiff
path: root/stand/liblua/gfx_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* stand: Bulk operations on each gfxfb_blt if shadow buffer enabledShengYi Hung2026-06-181-1/+2
| | | | | | | | | | | | | | | | | | | Previously, gfxfb_blt flushed the framebuffer on every call. Since a single drawing operation may invoke gfxfb_blt multiple times, this can result in unnecessary flushes. Instead, write updates to the shadow buffer (when present) and mark the affected area as dirty. Flushing is deferred so multiple gfxfb_blt calls can be coalesced into a single update. As before, only the dirty region is flushed. This fixes the slow bootloader problem in some platforms. Reviewed by: imp, adrian, obiwac Tested by: obiwac, jrm MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57373
* loader: rename gfx_interp_md to gfx_interp_refWarner Losh2024-02-241-1/+1
| | | | | | | | | We have the call to gfx_interp_ref to bring in the .o so that we get the linker set item to add the language bindings at the right time. Where we call it is not the right time... So the _ref name is better. Change it before we have too many others like it. Sponsored by: Netflix
* loader: Move to using linker sets to bring in optional bitsWarner Losh2024-02-161-0/+27
| | | | | | | | | The graphics stuff is optional. When it is pulled into the system, we use a linker set to initialize the lua bindings for it now. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43906
* loader: Add prototype for gfx_interp_mdWarner Losh2024-02-161-0/+5
| | | | | | | | | | This function will be used to draw in the graphics bindings when the loader is compiled with graphics (gfx) support. Provide definitions for lua and the simple interpreter. 4th support is forthcoming. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43903
* loader: Separate gfx to a new file.Warner Losh2024-02-161-0/+242
Move gfx lua hook registration to a new file. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43901