Commit Graph
2 Commits
Author SHA1 Message Date
Anees Iqbal 9a1c8fe6dc metal2vulkan-rt takes the runtime's name: metal2vulkan-runtime, published
The cutover's last mechanical step. The old runtime is deleted, so its name is free: the crate
moves to crates/metal2vulkan-runtime, its package is metal2vulkan-runtime and its library
metal2vulkan_runtime, and every reference in the tree follows (sources, tests, scripts, CI,
generated tables and docs).

It is now a published crate, as AGENTS.md said it would be once it took the name: version 0.2.0
with the other two, the translator pinned exactly (=0.2.0, as the translator pins the AIR front
end), documentation, keywords and categories, and copies of the repository's four license files,
which the published-crates test now holds equal to the root's for three crates. CI packages it
with the others. Prose that said it was unpublished, or counted two published crates, says three.

AGENTS.md: facts only. The crate table row, the published-crates and version sentences, and the
paragraph on the old runtime, whose name the runtime now carries (listed for the owner).

Made by one script run on this tip. Verified by the job
named in the landing note.
2026-11-20 09:10:02 -08:00
Anees Iqbal 0afc54c573 rt tests: every instance runs under the validation layer, its log checked
Every instance rt's device tests open goes through one helper, crate::tests::validation. It
enables VK_LAYER_KHRONOS_validation for its own test process through the loader's and the
layer's own variables (VK_INSTANCE_LAYERS; report flags error,warn, debug action log, one log
file per process). It checks that every device of the cfg's kind lists an active validation
tool (vkGetPhysicalDeviceToolProperties), so a run whose loader found no layer fails. Once the
instance is gone, it reads the log, prints each line with the test's name and fails on any
message. The 41 sites that called Instance::new go through it; the exit-handler test reads its
child's log, since the child's instance never drops. One test makes a deliberately invalid
call (a buffer of size 0, refused by the layer) and checks that its log holds exactly
VUID-VkBufferCreateInfo-size-00912.

The product keeps no layer code and no variable read. Its one change is a visibility:
Instance's shared state is pub(crate), so the helper waits, bounded, on a weak handle of it
until the instance is gone, and only then reads the log.

scripts/validation-layer makes the layer's directory, one version (1.4.363.0) on every leg, as
a carry: Linux's copied from a node whose pacman package is that version and unaltered,
Windows's from MSYS2's clang64 packages checked against the package database's SHA-256, and
macOS's from a Homebrew install at that version. scripts/matrix carries it to every job that
runs rt's device tests (GPU legs, lavapipe, the Windows host), points VK_LAYER_PATH at it, and
puts the layer's version in the leg's note. A job without the layer says so and points the
loader at none. The harness's timing jobs run without it.

Verified: the matrix's unit tests (48, two new ones run the layer's shell for real) and the
layer carry made. Builds and legs follow.
2026-11-18 12:17:31 -08:00