Commit Graph
5 Commits
Author SHA1 Message Date
Anees Iqbal ddaf1e3602 🐛 Clear the boot screen at WindowServer's first frame
When WindowServer quits at a shutdown, or dies, the kext shows the scanout
again (PRESENT_SURFACE 0). The scanout still held the Apple logo and progress
bar that the firmware and the kernel's console drew during boot, so the window
showed the boot screen until power off, and for a moment after a WindowServer
crash.

The kext now clears the scanout to black once per boot, on the work loop, at
the host's answer to the first present of a surface. The display shows that
surface by then, so the clear is never seen. It clears the boot framebuffer's
rows, or the largest mode's where that is more. Nothing draws the boot screen
again, so a later return to the scanout shows black with no more work.

Measured on um870's 780M with a macOS 26.7.2 guest, through QMP screendumps:
the boot still shows the logo and progress bar; a shutdown shows black until
QEMU exits, where it showed the boot frame from 14 s in; a WindowServer kill
shows black, then the login window, where it showed that boot frame first.

The guest's kext set is built again with it.
2026-11-07 10:17:45 -08:00
Anees Iqbal 7c6c2ef54c 📦 Build the guest's kext set again with plain-page slabs and WC spans
make -C guest prebuilt on the Mac, from the guest sources of bbaef7ab3: the slabs
in plain pages where no superpage is left, the upload chunks in the slabs, and
the write-only spans mapped write-combined from a descriptor of their own.
2026-11-07 08:27:28 -08:00
Anees Iqbal 24bf7569c3 🐛 Rebuild the prebuilt kext set with the specialised shadows
RgfxGate carries the bundle a guest installs, which now gives a function made
with constant values or a specialized name a shadow to stitch over, so MPS's
uber shaders, and Geekbench 7's GPU benchmark with them, stitch on x86-64
guests of reims-vgpu's device. Built by `make -C guest prebuilt` with the macOS
26.7.1 (25G241) KDK the set records.
2026-11-07 04:10:56 -08:00
Anees Iqbal dabc7cf83b 🆕 Rebuild the prebuilt kext set with the GPU's model name
guest/prebuilt carries the ReimsGraphics that states the host GPU's name as
its PCI device's model, and the loader made for it: the new kext moved its
sites, so the loader's table is new too, while the shims, which follow the
kext's imports, and RgfxGate are unchanged. Built by `make -C guest
prebuilt` with Xcode 27.2 and the macOS 26.7.1 (25G241) KDK. OpenCore
1.0.8's linker injects Lilu and the five kexts into 25G241's Boot KC with
every name resolved and all 114 sites of ReimsGraphics on their shims'
placeholders (make set-check); make prebuilt-check passes.
2026-11-05 23:10:39 -08:00
Anees Iqbal d47ccde75b 🆕 Carry the guest's OpenCore kext set prebuilt, with its record
Linux hosts cannot build guest/, so reims-ctl carries this set into users'
x86-64 OpenCore images for the reims-graphics device: ReimsGraphicsLoader,
its IOGraphicsFamily and AppleGraphicsDeviceControl shims, ReimsGraphics
staged for it and RgfxGate with the bundle, 1.9 MiB, with set.toml, their
Kernel > Add entries in order. Built by `make -C guest prebuilt` from this
tree with Xcode 27.2 and the macOS 26.7.1 (25G241) KDK; two clean builds
gave the same bytes. sources.toml records the SHA-256 of the 209 sources
and of each file, which `make -C guest prebuilt-check` holds the tree to.

With OpenCore 1.0.8's linker in user space, Lilu and the five kexts inject
into 25G241's Boot KC with every name resolved, and all 114 sites of
ReimsGraphics hold their shims' placeholders (make set-check). They link
against Lilu, the KPIs, IOPCIFamily and IOSurface alone: no kext of the
x86-64 port is needed.
2026-11-05 22:56:45 -08:00