Files
reims-vgpu/docs
Anees Iqbal cd6b7bb2bf 🐛 Answer framebuffer read to an arm64 guest as its host GPU can
arm64 guests drew WindowServer's menu bar, and some widgets, 100% black.
CoreAnimation compiles framebuffer fetch into its generic shader by
isFramebufferReadSupported, and that shader blends against the fetched
destination whatever the answer. The device answered no to every guest,
so the destination was the AIR's NaN. Metal on the M3 Max writes the same
NaN for that pipeline and its buffers, so the translation was right; the
answer was not one an Apple silicon Mac gives.

The x86 Macs split on it (AMD 5300M no, Intel UHD 630 yes, measured again
today), and x86 guests keep the AMD answer, which keeps their frameworks
off the platform's costly fetch. So the answer now follows the guest:

- The C API's RvgGraphicsDeviceConfig gains guest_arch (RvgGuestArch:
  RVG_GUEST_ARCH_X86_64 0, RVG_GUEST_ARCH_ARM64 1), its second version: a
  host built before it, whose struct_size ends before the field, serves an
  x86-64 guest; any other value is RVG_ERR_INVALID_ARGUMENT. The Rust API's
  GraphicsConfig gains GuestArch alike.
- The device-info blob answers isFramebufferReadSupported with the
  platform's answer for an arm64 guest (yes on MoltenVK, RADV, ANV and
  NVIDIA, which fetch through the pixel interlock), and no for an x86-64
  guest as before.

What the guest sees: an arm64 guest's MTLDevice answers
isFramebufferReadSupported yes where the host GPU fetches, once the host
names the guest arm64 (QEMU, next commit). An x86-64 guest's blob is byte
for byte what it was. On ANV and NVIDIA a pipeline that fetches an
attachment of a format the runtime does not fetch there (R8/RG8 sRGB, and
on NVIDIA the packed 16-bit formats and RGB9E5) is answered nil, relayed.
2026-11-09 18:15:57 -08:00
..