Commit Graph

9 Commits

  • feat(scripts): the macOS GPU bundle layout and prime list
    The plugin is built as a macOS bundle with an embedded prime list and the addon places it for /Library/GPUBundles.
  • feat(scripts): build the GPU plugin for macOS 27
    The macos27 target builds Turnip, the Metal bridge and the plugin for arm64e-apple-macos27.0 with the macOS SDK, in the macOS bundle layout (Contents/MacOS, Contents/Resources). make-gpu-addon.py accepts either layout. The mesa diagnostics patch marks its new header as a new file. The plugin builds and signs with 4 KiB pages; the macOS payload does not carry it yet.
  • refactor: drop the sheng- prefix from boot arguments
    Every boot argument loses its sheng- prefix (sheng-touch=4 is now
    touch=4) in the scripts, the XNU and Mesa patches and the drivers.
    No XNU or Apple kext boot argument of iPadOS 27 or macOS 27.3 uses any
    of the new names. The Metal plugin and Turnip look a name up as a whole
    command line token, so log=1 no longer matches cache-log=1.
  • feat(scripts): iPadOS 27 kernel, driver, GPU addon and seed build steps
    Source-driver and source-storage builds, the arm64e PAC rewrite for the Rust bridge, the IOAccelerator base ABI of 24A446, the bridge with mimalloc and link-time optimisation, the plugin with the prime list, addon options for a prime list, a pipeline pack and cache export, wallpaper overlay and seed changes, and payload, kernel and userdata steps for the new profile.
  • feat(gpu): carry the shader prime list in the addon and the plugin
    make-gpu-addon.py --prime-list FILE adds the OS image's .metallib paths
    as addons/NativeAdrenoMetal.primelist. The plugin build also links
    build/prime-list.txt into the executable's __DATA,__primelist section,
    since the render server's sandbox may refuse to read the file.
  • feat(payload): replace the default wallpaper's heic images with png
    PosterBoard renders the iPad7,1 variant of wallpaper 7570, a layered
    animation whose two HEIC images ImageIO cannot decode without a hardware
    HEVC decoder, so the wallpaper stayed black.
    
    scripts/make-wallpaper-overlay.py converts both images to 2732 pixel PNG
    and points a copy of main.caml at them. make-gpu-addon.py --wallpaper
    packs that directory into the addon. The kernel now creates missing
    directories below /private/var/ngpu while it writes the addon, and
    mounts /private/var/ngpu/wallpaper as a read-only union over the
    animation's directory.
  • feat(payload): write a gpu addon into the data volume at boot
    `unixnu build payload --gpu-addon FILE` carries a file made by
    scripts/make-gpu-addon.py next to the kernel. The loader hands it over as
    /chosen/memory-map/GpuAddon, and before launchd starts the kernel writes
    every file whose content or mode differs into /private/var/ngpu of the
    mounted Data volume, then mounts the addon views. The Adreno Metal plugin
    then no longer has to be part of the Data seed, so the seed's persistent
    store survives a plugin rebuild. Every file is zlib compressed to keep
    the payload FAT at 192 MiB. Updates DarwinBoot and NativeRamBlock for the
    addon handoff.