Files
reims-vgpu/docs/graphics-kext
Anees Iqbal 97808c8997 🐛 Pin Private heaps at 256 KiB from their block's first byte
Guest-visible: a device heap the bundle pins in a Private block now starts
at a multiple of 256 KiB from that block's first byte, on both platforms,
where it started at the next 32 KiB granule. Heaps' gpuAddress values move;
no other pick does, and no wire field changes.

metal2vulkan-rt binds a heap's texture at the heap's offset in its block's
memory plus the texture's offset, and refuses one whose place there is off
the image's alignment, though Metal's rule (the offset a multiple of
heapTextureSizeAndAlign's align) places it. With heaps on the 32 KiB granule
every texture whose image asks 64 KiB or more (the 780M, Iris Xe, the XTX)
could land off it: pl8rt counted 85 such refusals in one boot, and the
window overview's thumbnails stayed grey.

256 KiB is the largest image alignment measured on the hosts' GPUs (a
multisample target on an RX 7900 XTX) and the current runtime's own heap
base alignment. The pick counts from the block's first byte, not from 0,
because the block's address is aligned only to the host's 64 KiB while its
memory starts at a multiple of 2 MiB on rt. Where no block is held the heap
lies at a multiple of 256 KiB in the context's range. The leading gap stays
in the block's free list, so later smaller picks reuse it once picks wrap.
2026-11-19 07:52:55 -08:00
..