Files
reims-vgpu/docs
Anees Iqbal c897a0f78f ⬆️ Build on metal2vulkan development efd7dbcd4d
Moves the runtime to metal2vulkan development efd7dbcd4d, which holds
development db3a88526b and the Shared memory coherence form the owner chose
(A-narrow, Telegram 2963). SEMANTICS moves from 2302 to 2304 and ARTIFACT from
596 to 597 (RUNTIME stays 2550), so every host translates its guests' shaders
again once, and rt's stored artifacts and pipeline caches re-key.

What changes for the guest at this pin:
- rt's floor takes a device whose host-cached memory types are none of them
  host-coherent. Shared storage lives in the first host-visible, host-cached
  type a buffer can use, a host-coherent one first (2c4680acea, 31ca7f6779).
  Such a device is one where Mesa's Intel driver over i915 runs a GPU with no
  cache it shares with the CPU, as on a user's Intel Arc (Meteor Lake) laptop,
  which rt refused with rt-refused-below-floor (Missing::MemoryType). It is
  now made. On it, rt flushes the Shared memory a submission's command buffers
  reach before it submits them. Before the host can see a command buffer's
  progress (its status, a wait, its completed handlers, a shared event's
  value), rt flushes then invalidates what the command buffer may write. It
  also flushes around replaceRegion, getBytes and the named bytes of an
  upload. A range a command buffer reaches only through an address or a
  residency set, with no binding or declaration naming it, is neither
  flushed nor invalidated there (rt's known gap). The commit after this one
  forwards a render encoder's useHeaps, so a used heap's memory is among what
  rt flushes. On a device with a host-coherent host-cached type, every GPU our
  tests and boots run on, rt takes the same type as before, keeps no ranges
  and makes neither call. metal2vulkan measured what that costs there
  (efd7dbcd4d's message): +43.1 user-space instructions per command buffer
  on a Radeon RX 7900 XTX's burst_2000 (job 74045), and 1.0062 on burst_2000
  and 1.0115 on frame_5cb on a Radeon 780M (job 74046).
- A metallib of format 2.2, whose function entries carry no MDSZ and which has
  no extended header (an older toolchain's precompiled library, such as the
  one a game launcher's SDL2 renderer makes), is read (4bcb58dbb1, SEMANTICS
  2303). rt refused it as Container(MissingTag), and every pipeline made from
  it was dropped. Its functions, AIR 1.8 with the pre-LLVM-4 metadata and
  typed-pointer records (METADATA_STRING_OLD, METADATA_KIND in the METADATA
  block, METADATA_OLD_NODE, INBOUNDS_GEP_OLD, LOAD and CALL without their
  types), now decode as LLVM 23.1.2's reader reads them (31b3470a3e,
  a68c6633c2, SEMANTICS 2304), where each stopped at its first such record.
  Lane steamfix's boot of the launcher's disk on these fixes (job
  m3-max-73971, um870's RTX 3090) made all 61 of its libraries, the SDL2
  renderer's among them, and all 25 render pipelines made from its functions,
  with rt-refused-translation 0. A METADATA_KIND record with fewer than 2
  operands, or with a kind id stated twice, is now malformed, as it is for
  LLVM's reader.
- A compressed copy of whole blocks that ends past a level's edge, inside the
  level's last block (the one 4 x 4 block of a level of 4 x 2 texels), copies
  that block (9ddd0be2a4). That covers texture to texture, buffer to texture,
  texture to buffer, replaceRegion and getBytes, and matches what Metal does
  (measured on an M3 Max by metal2vulkan's probe
  compressed_copies_of_small_levels). rt refused those copies as
  Refusal::TextureRegion (rt-refused-ours), encoding nothing. A copy between
  two textures whose regions stop at different edges is now Gap::TextureCopy
  (rt-refused-gap), still encoding nothing. A size past the rounded edge stays
  refused as TextureRegion.
- The rest of the range is metal2vulkan's validation, probes, conformance
  cases, censuses and docs. Its deadbind deletions (the indirect-command
  plumbing only its deleted runtime drove, and the Y'CbCr planes chain nothing
  has made since its producer went) remove 51 records from api_signatures.tsv,
  and this tree names none of them.

For the host: rt's Metrics gain five fields, the Shared memory flushes and
invalidates, their bytes and the calls that failed, all 0 on a host-coherent
type. The counts line carries them from the commit after next. No other API
this tree uses changed, no rt kind of refusal, gap or note is new, and no
dependency changed: the lock, in its stripped form, is unchanged. Our docs
that named the Shared type's flags follow (gpu/identity.rs, pool.rs,
docs/api.md), and rt_platform/copied.rs says which copies rt flushes on a type
that is not host-coherent.

Checks the move cannot reach: QEMU, the option ROM, the guest's kexts and
bundle and reims-ctl build nothing of the runtime. The video crate and its arms
call nothing the move changes, so their checks do not run. The table's row owes
no boot: the move changes no death the platform ends the process on, and on
every GPU we run, rt's floor answers as before and takes the same Shared type,
with no device info, GPU family or feature query changed. Only a device with no
host-coherent host-cached type sees the floor change, and no lab GPU is one.
The Windows tests on the mini run after the merge.
2026-11-25 14:35:47 -08:00
..