Files
reims-vgpu/guest/prebuilt/ReimsGraphicsLoader.kext/Contents/MacOS
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
..