A driver that uploads a stage's push bytes up to the highest one the stage reads, and widens a
push load past its last byte by up to 28 bytes, read past the upload where a stage's last field
ended its push (RADV: 49 compute stages at tip). A read pinned past the fields (R7) cost the
stages a driver holds whole in registers those registers: the pin raised the used-word count past
the driver's limit (RADV keeps all 16 words of the harness's lcg_step in user SGPRs at tip, none
under R7). The tail adds no read where the stage has a field of a tail kind, and moves one.
- lower/push.rs: on PushWindow::Floor, place() lays the longest prefix of the kind order that
fits with its tail: the highest field of a tail kind (SlotBounds or ZeroAddress, the two kinds
whose value the consumer never pushes with every bit set) moves HOLE_BYTES (24) above the other
pushed fields' end; where the pushed fields hold no tail kind, the zero tail word
(PushField::TailWord at PushPlacement::tail_word) takes that place, with which push_range ends.
One pushed field of one or two words has no tail. The guaranteed window is packed as before.
- tail(), check_floor(): the structural tail and the floor's bound, which select checks on every
placement as an invariant error.
- emit: the stage reads its tail in its first block and returns where it holds the value the
consumer never pushes there (emit_tail_guard): the word non-zero, bounds with both words all
ones, the zero range's address all ones.
- PushPlacement::tail_word (public, serde default, codec), PushField::TailWord (codec, API
table); SEMANTICS_VERSION 2201, ARTIFACT_FORMAT_VERSION 556; the old render descriptor key
re-pinned at 2201.
- Tests: push.rs's floor placements at their tails, the bound's refusals; engine_identity's
31-slot kernel spills 4 addresses to its block; engine_identity_render's vertex range ends at
64. Docs: API.md section 5 (the tail and what the consumer pushes), rt README (24 addresses
below the tail), the profile's window doc.
Verified at 855d973a38 (this change before development's c39f6e8350 and 1de18aa609, which
touch no translator file), m3-max-58299 on msi: the metal2vulkan and metal2vulkan-rt suites
3911 of 3911 passed; the old-path pins (golden hashes over Device::new and the old render key)
pass. Clippy failed there on four indexing lints in push.rs, fixed here with get().
RADV dump (m3-max-58310, Radeon 780M, Mesa 26.2.6): lcg_step keeps the same 16 push words in
user SGPRs with no push pointer, plus a 3-instruction scalar guard; the 18-word kernel keeps its
two loads (+0x20, 32 bytes; the second now at +0x58).