Files
reims-vgpu/firmware/prebuilt/ReimsGraphics.toml
T
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

18 lines
1.3 KiB
TOML

# prebuilt/ReimsGraphics.rom, the option ROM reims-ctl carries for reims-vgpu's own device,
# and the sha256 of each file it was built from: make -C firmware prebuilt writes both on a
# Mac, and make -C firmware prebuilt-check checks them against the tree. Built with:
# Apple clang version 21.0.0 (clang-2100.4.1.1)
# Homebrew LLD 23.1.5 (compatible with GNU linkers)
rom = "749434f87f562895548f60681cd4cd8bf6cc0d0e967ac2fea297674426709161"
[sources]
"crates/reims-vgpu-graphics/include/reims_graphics_wire.h" = "b05d1b3b602e86f98e8074a9c9e5bd8c57b2a18d98588a3ee9895917cc0bb716"
"firmware/Makefile" = "d85b14a3b40cc59b7c07a9e3a3a273c257e81c5674963c70c3c45eb386e653d0"
"firmware/src/OptionRom.S" = "b910fe61a880580996a81134fba75900d3a9f48ca266e76fe2d6b8eb5a011eb9"
"firmware/src/ReimsGraphics.c" = "554751ff15edbdf69a038d5b2aefd8315b9c54610c090c0890d9c72b13dacdef"
"firmware/src/ReimsGraphics.h" = "83e3439b9baf9c06ee75c57537792770efa7a5cb07e22bf1fb47f6ffef7af169"
"firmware/src/ReimsGraphicsName.c" = "107e7e34240a3942dcd410b701768ab81013f42932783b7fa90fcefc3f815f19"
"firmware/src/ReimsGraphicsOutput.c" = "c35ed747684d90c2b195d95613d79111a9f7c0777654f5f027ed9951bdd7a112"
"firmware/src/ReimsGraphicsRom.S" = "7b0482515ec151272c609b8a2c343476c525aa1f916997df0999e5eeaf42474c"
"firmware/src/Uefi.h" = "d9b349424b645428c114d141b0ca7c4b92ccef573803e16eea501258eb5572ee"