Files
metal2vulkan/crates/metal2vulkan-runtime/tests
Anees Iqbal f30d2c42a2 IcbShared states its Send and Sync, so a handler that keeps its reports builds at the default limit
The validation crate's release build of its tests under --cfg m2v_cpu_icd stopped building on
development (155027095f, job m3-max-22422): runtime_lane/indirect_host_steps.rs's executed-commands
handler keeps the reports it is handed (Arc<Mutex<Vec<ExecutedCommands>>>), and proving its
capture Send and Sync walked from the reports down an indirect command buffer's fields past
rustc's default recursion limit of 128 (recursion_depth_exceeding_limit, an error under
-Dwarnings). A program's crate that writes such a handler meets the same walk.

IcbShared now implements Send and Sync by hand, as Deferred does, with a constant that makes the
compiler prove each of its fields Send and Sync, naming every field, so a field added fails the
build until it is proved too. The walk from a consumer's types ends at an indirect command buffer's
shared state. Chosen over #![recursion_limit = "256"] on the validation crate: that would hide the
walk from the lanes alone, while every program's crate keeps the default limit.

tests/consumer_auto_traits.rs gains a_handler_keeps_the_reports_it_is_handed_at_the_default_recursion_limit,
the handler written as the lane writes it, in a function of its own as the file's other checks are.
2026-11-12 12:57:17 -08:00
..