Files
reims-vgpu/firmware/prebuilt
Anees Iqbal d9cc457b5a 🐛 Drop the GPU's writes to read-only pages on rt, as Metal does
A buffer or heap over pages their process maps read-only (option bit 24, a
read-only pages block) lay in place on metal2vulkan-rt's device, so the GPU's
writes reached the pages, where Metal drops kernel and blit writes to them and
the M3 Max faults a render pass's store. Read-only pages are now imported as a
copy whose GPU writes are put back from its base at each completion, so the
pages keep their process's bytes:
- a read-only pages block's view is imported as such a copy, and the decoder
  caches those views apart from writable ones;
- a no-copy buffer or heap of bit 24 with no pin lies over a copy of its own;
  one pinned in a known block whose writes reach the pages stays in place,
  counted rt-no-copy-read-only as before;
- a render pass that stores into a texture over such a copy completes with the
  store dropped, as the 5300M and the UHD 630 answer, counted
  rt-copied-store-outs.

What the guest sees: once a command buffer completes, its GPU writes to
read-only memory are gone from the pages, as on a Mac; within a command buffer,
and between ones in flight at once, a read after the write still sees it.
Tests: the count test, the decoder's view-import test (read-only asked, cached
apart), the drop merge's unit test, and a GPU test of a read-only buffer's
dropped fill, copy and render pass store. The wire header's IMPORT_ADDRESSES
sentence now says what rt gives a read-only block. The kext sets' and the ROM's
records take the header's new hash; no binary changes.
2026-11-19 17:00:15 -08:00
..