Files
reims-vgpu/guest/prebuilt/set.toml
T
Anees Iqbal 4e1f847978 🐛 Answer nil for a device texture of more bytes than maxBufferLength
The device's newTextureWithDescriptor: sent every texture its validation
passed to the host, posted, and answered a texture, however many bytes it took.
Metal answers nil for one too large to make: the Intel 630 past its
maxBufferLength, the AMD 5300M past 16 GiB (the previous commit's
measurement). A texture whose create the host's platform refused for its size
was then one the app held, and the draws of every command buffer naming it
were dropped (refused.rs), where Metal's app would have seen nil and taken
another path.

What the guest sees: the device's creator answers nil, sending nothing, for a
texture whose bytes, every level of every slice and sample in its format's
blocks (its allocatedSize), are more than the device's maxBufferLength, as the
Intel does and as the bundle answers a buffer and a heap past it. It is inside
both x86 GPUs' answers, and keeps a texture within three quarters of the host
GPU's working set, which our maxBufferLength is. A heap's, a buffer's and an
IOSurface's creators place a texture in memory of their own size, and are
unchanged. test_textures_past_max_buffer_length_are_nil expects it.

guest/prebuilt is rebuilt from the tree (make -C guest prebuilt, the macOS
26.7.1 KDK): RgfxGate, which carries the bundle, and the record.
2026-11-07 11:07:32 -08:00

58 lines
2.1 KiB
TOML

# The kexts an x86-64 macOS guest's OpenCore image injects for the reims-graphics
# device: one [[kext]] per Kernel > Add entry, in order, after Lilu's, each the bundle
# beside this file named by BundlePath. Written by `make -C guest prebuilt`; do not edit.
# The keys are OpenCore's, but sha256, the SHA-256 of the entry's executable.
format = 1
MinKernel = "25.4.0"
MaxKernel = "25.99.99"
[[kext]]
BundlePath = "ReimsGraphicsLoader.kext"
ExecutablePath = "Contents/MacOS/ReimsGraphicsLoader"
PlistPath = "Contents/Info.plist"
Arch = "x86_64"
MinKernel = "25.4.0"
MaxKernel = "25.99.99"
Comment = "Binds ReimsGraphics to IOGraphicsFamily and AppleGraphicsDeviceControl"
sha256 = "d1722dfc38bf0aec62219785094cc03d79a6c6c39b551b453bc202874923468f"
[[kext]]
BundlePath = "RgfxIOGraphicsFamilyBridge.kext"
ExecutablePath = "Contents/MacOS/RgfxIOGraphicsFamilyBridge"
PlistPath = "Contents/Info.plist"
Arch = "x86_64"
MinKernel = "25.4.0"
MaxKernel = "25.99.99"
Comment = "IOGraphicsFamily placeholders ReimsGraphics links against"
sha256 = "347b0d81deeb1aba5a6bb2640c9f69bce68607b88b3d7fc5b7f43687ce365253"
[[kext]]
BundlePath = "RgfxAppleGraphicsDeviceControlBridge.kext"
ExecutablePath = "Contents/MacOS/RgfxAppleGraphicsDeviceControlBridge"
PlistPath = "Contents/Info.plist"
Arch = "x86_64"
MinKernel = "25.4.0"
MaxKernel = "25.99.99"
Comment = "AppleGraphicsDeviceControl placeholders ReimsGraphics links against"
sha256 = "12bded4c6d70f1177662195121927ca9ce0af450a80f3fcf79ba1b555887f95d"
[[kext]]
BundlePath = "ReimsGraphics.kext"
ExecutablePath = "Contents/MacOS/ReimsGraphics"
PlistPath = "Contents/Info.plist"
Arch = "x86_64"
MinKernel = "25.4.0"
MaxKernel = "25.99.99"
Comment = "The reims-graphics display, accelerator and device control"
sha256 = "7272e9cd250c39ab2dd020574883e74220eb92b7aacbaf2481a1c3ef198e42eb"
[[kext]]
BundlePath = "RgfxGate.kext"
ExecutablePath = "Contents/MacOS/RgfxGate"
PlistPath = "Contents/Info.plist"
Arch = "x86_64"
MinKernel = "25.4.0"
MaxKernel = "25.99.99"
Comment = "Installs the reims-graphics Metal bundle and lets macOS load it"
sha256 = "85eb3447a01149fe984997b1ab3a0083619f23ee1ad21576af24123afe799ce9"