Files
metal2vulkan/crates
Anees Iqbal 5d33e0c74a Device replay tests write the header's binding counts, as the runtime does
SEMANTICS 2111 (eed5f3d84b) made the compute replay read a record's kernel
bindings only below the header's packed count (layout::COUNTS, byte 0). The
runtime's header always carries it: CommandDescriptor::encode_header writes
the descriptor's max_buffer_bind_count there, at the indirect command
buffer's making (indirect_command_buffer/home.rs, indirect_commands/host.rs),
and Metal's setters cannot set a kernel buffer at or past that count, so a
real record never holds a binding the count leaves out.

tests::engine_device_replay built its records' header by hand with the
capacity alone, a count of 0, so after 2111 its replays read no binding and
six tests computed zeros (pin 90b's CORE suite, m3-max-29378, profile
amd-780m-hawkpoint-radv). bind::replay's tests had been given the count in
2111; this file was missed. Its header now carries every kernel binding's
count, as bind::replay::tests' run_preprocess writes it. A test-only change.

Verified next on msi: tests::engine_device_replay, the 72 interpreter tests
of 2111 (engine_indirect_commands, bind::replay), clippy.

Verified: msi m3-max-29430: nextest -p metal2vulkan (engine_device_replay,
engine_indirect_commands, bind::replay) 87/87 incl. pin 90b's six; clippy -p metal2vulkan
-D warnings (all targets and features) 0.
2026-11-14 08:18:18 -08:00
..