Files
metal2vulkan/docs
Anees Iqbal 9df6908e36 Translator: a replay variant under the identity domains pushes the root table its slots are read from
Under the identity domains a device-replay variant (VariantKey::replay_bindings) ended in an
internal error, "a strategy reads the unplaced push field RootTableAddress": a vertex function's
buffer arguments, the attribute of the pulled-vertex-buffer variant and a kernel's buffers alike.

The variant reads each buffer slot's address from its replayed command's root entry
(access::replay_guest_base, which a replay variant's SlotGuestBase reads route to), and the
translator already holds it so: the address is not biased in a replay variant
(pointer::biased), and its accesses take no SlotBounds (access::identity_contained). But
place_slots pushed every device-address slot's SlotGuestBase under the identity domains, whatever
the variant, after plan_replay had replaced the selection's SlotGuestBase fields by
RootTableAddress. So nothing pushed the root table's address the derived reads load.

The field is placed: a device-address slot's push field is its own address only under the
identity domains outside a replay variant (slot_address_field), in place_slots and in the census
its spill decision reads, and the root table otherwise. No refusal changes, and no module of a
compile that succeeded before changes: the combination never compiled. The branch's one
SEMANTICS bump (2273, the half-move commit before this one) covers it. docs/API.md section 5
states where a replay variant's slot addresses come from under the identity domains.

Verification:
- pipeline::compile::tests::a_replay_variant_under_the_identity_domains_reads_its_root_entries,
  new: icb_render_replay_template, icb_render_stride_template under the pulled-vertex-buffer
  variant, and icb_replay_template compile under the identity domains with replay bindings,
  every buffer slot at its device address, RootTableAddress pushed and no SlotGuestBase or
  SlotBounds, every stage through L3.
- tests::engine_device_replay::
  a_replay_variant_under_the_identity_domains_reads_its_slots_from_their_root_entries, new: a
  kernel compiled so on every committed profile under the identity domains pushes
  RootTableAddress alone, and on the CPU interpreter reads and writes at the addresses its root
  entries name (guest plus bind_offset, 16 bytes into one buffer), above 4 GiB.
2026-11-22 02:05:42 -08:00
..