Since 059835018a every stage folded its tail's test into each other pushed field through a
select. A kernel's entry also returns invocations before its body where its dispatch passes its
grid (dispatch::emit_entry), so a return at entry is a kernel's own shape, and the selects cost
kernels on three vendors. A fragment stage has no other return at its entry; AMD's open driver
(AMDVLK 2025.Q2.1) died making one whose body ran under the never-taken return, which is what the
fold removed.
Now the stage kind decides it, the same on every device:
- Stage::Kernel loads its push fields in placement order, then returns where the tail holds what
the consumer never pushes (EmitCx::emit_tail_guard, lower::push::return_never_pushed), as
before 059835018a. The tail's read is in the first block, and everything the kernel does after
the return depends on it.
- A render pipeline's stage (vertex, fragment, object, mesh) keeps the fold as shipped
(EmitCx::fold_tail, lower::push::fold_never_pushed): no branch on the tail.
- EmitCx::tail_test reads the tail and makes its test for both; load_fields loads the fields a
filter takes, in placement order.
- Docs: lower/push.rs, lower/emit.rs, the arena test's module doc, docs/API.md section 5.
Same pushed bytes, same placement, no interface change.