Files
metal2vulkan/crates
Anees Iqbal 1146929b09 Lane test: a stitched function computes its graph on the device
The consumer's path end to end through the runtime: the stitched
library made from its bytes (Device::new_library_with_data, the form it
takes when a guest hands it over), its functions linked into the
caller's kernels in privateFunctions and in functions, one thread on
2, 3, 4 and 5. runtime_lane::stitched_functions checks Metal's measured
words, 20 for `fused` and 25 for `fused4`, read back from the device.
The runtime README says that a stitched function links as any linked
function does and that the runtime makes no stitched library itself.
The runtime's sources are unchanged.

Verified on the M3 Max through MoltenVK under the validation layer
(RUSTFLAGS='--cfg m2v_gpu', through the Mac GPU lock):
runtime_lane::stitched_functions::a_stitched_function_computes_its_graph
passes, beside runtime_lane::linked_functions' two tests; with the
translator's old signature gate restored it fails, the pipeline state
refused with the consumer's error.

(Carried to development from steelbrain/reims-graphics-kext 199df8d7b3.)
2026-11-01 21:26:19 -08:00
..