Files
metal2vulkan/crates
Anees Iqbal 8b551b05f0 A draw that binds a zero region of its own is not rebound
A function that reads a writable buffer binding with nothing bound to it reads a fresh
zero-filled region of the command buffer's upload arena at every draw (binding::write_info's
neutral zero buffer for a non-uniform binding). A draw rebound keeps the kept draw's set-0 writes
at every slot but the changed ones, so it bound the kept draw's region, which that draw may have
written, where every step binds a new one. In debug builds the check of a rebound draw panicked
with 'a draw rebound worked out other set-0 writes than its every step' (draw_again.rs:804). A
consumer's tests hit it: draws after the private setters with no vertex buffer bound, whose
vertex function reads its buffer 0 unbound, rebound across direct and indexed calls since
RV 2112.

binding::binds_own_zeros tells such a plan, and a draw of it keeps no rebinds
(Kept::rebinds false): it takes every step, as before RV 2112's reargued rebounds.

Verified: runtime_lane::provoking::draws_after_the_private_setters_rebind_what_every_step_binds,
with the vertex buffer left unbound, panics at draw_again.rs:804 on lavapipe before this change
(job m3-max-21076).
2026-11-12 06:54:15 -08:00
..