Translator: a replay variant under the identity domains is refused, typed

The commit before this one placed the RootTableAddress a device-replay variant
(VariantKey::replay_bindings) reads its buffer slots' addresses from, so under the identity
domains the variant no longer ends in the internal error "a strategy reads the unplaced push field
RootTableAddress". Its message said the variant then compiles there; it does not. With the field
placed, the plan reaches select::identity_admits, whose admitted push fields hold no
RootTableAddress: the identity domains read no root table, and the variant is refused,
Unsupported{IdentityDomains} (NotImplemented) naming "an encoder value the function reads as
RootTableAddress". That refusal is the true answer: only the binder (bind/replay, bind/dispatch,
bind/graphics) asks for a replay variant, and the runtime, the one consumer of the identity
domains, never sets replay_bindings (no hit in crates/metal2vulkan-runtime/src). The refusal
site and its row are the existing ones, so docs/REFUSALS.md does not change.

So the tests say the refusal:
- pipeline::compile::tests::a_replay_variant_under_the_identity_domains_is_refused_typed (was
  ..._reads_its_root_entries): icb_render_replay_template, icb_render_stride_template under the
  pulled-vertex-buffer variant and icb_replay_template under the identity domains with replay
  bindings are each refused, typed, with that feature, need and symbol.
- tests::engine_device_replay::
  a_replay_variant_under_the_identity_domains_reads_its_slots_from_their_root_entries goes, with
  its module-doc paragraph: no such module is made.
docs/API.md section 5 now says the variant is refused there, and slot_address_field's comment
names the admission that refuses it.

Verified: before this commit, on m3-max-66628 (the product suite at 84c6726dd8, a
card-free host build), both item tests failed with exactly this refusal at the three compile
calls and the engine kernel; without the placement, m3-max-66629 (probe branch
steelbrain/halfmoves-probe-nofix2) failed both with the internal error, so the new test fails
without the placement. This commit's own run is the next compile job.
This commit is contained in:
Anees Iqbal committed 2026-11-22 02:05:42 -08:00
1 parent 46a9a57522
commit 8ed044f2e8
4 files changed
+36 -168

No files matched your search

+3 -4
View File
@@ -1090,10 +1090,9 @@ for dependency in &pipeline.dependencies {
program stored) and a pointer made from an integer are the device address the word holds,
unbiased and used directly, unchecked: there is no root table, no `PushField::RootTableAddress`
and no search. A texture's or sampler's `SlotGuestBase` is its `gpuResourceID`, unbiased. A
device-replay variant (`VariantKey::replay_bindings`, section 6) pushes no buffer slot's
`SlotGuestBase`: it reads each slot's address, unbiased, from its replayed command's root entry
(`guest` plus `bind_offset`) in the slot table at its `PushField::RootTableAddress`, and checks
no access against `PushField::SlotBounds`.
device-replay variant (`VariantKey::replay_bindings`, section 6) reads each buffer slot's
address from its replayed command's root entry, at `PushField::RootTableAddress`, which the
identity domains do not read: it is refused, `Unsupported{IdentityDomains}` naming that field.
- Under the identity domains, a buffer slot that an access may reach at a
byte offset that is not a translation-time constant (an index the memory plan does not prove
one value, a looping `memcpy` or `memset`, a pulled fetch) also reads