ebd7ab2a355f1e38b8885248385cdd04f39a4e7b
7
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2201f23e9f |
linux-gate-ci: the 128-bit runtime step checks the width took, as ci.yml's does
cpu_icd_tests_128 ran the runtime's tests with LP_NATIVE_VECTOR_WIDTH=128 but never showed that llvmpipe took the width, so a green run proved nothing about 128 bits. It now runs ci.yml's check first, with the same greps: vulkaninfo at that width, its deviceName and subgroup-size lines printed, and the step fails unless the device name says 128 bits and maxSubgroupSize is 4. It also takes ci.yml's --no-fail-fast, keeping the function in step with ci.yml's run text as the file's header asks. Verified: bash -n; and the step end to end on a host lavapipe, not in the gate's container: job m3-max-83977 defined step() and cpu_icd_tests_128 from this file and called the step on Mesa 26.2.4 lavapipe (LLVM 23.1.1). The device line read 'llvmpipe (LLVM 23.1.1, 128 bits)' with maxSubgroupSize 4; Summary 991 tests run: 991 passed, 4 skipped; step ok. The container run is unverified, and METAL2VULKAN_TEST_REQUIRE_PINNED_LLVM, which the script exports at its top, was not set (the host's LLVM is not the pin). |
||
|
|
2549c339c6 |
CI: the runtime's device tests again on lavapipe at 128-bit vectors, with a Mesa shader cache of their own
What: a Linux step after the CPU ICD step runs the runtime's device tests from that step's archive with LP_NATIVE_VECTOR_WIDTH=128 (lavapipe's subgroups of 4, the width arm64 lavapipe runs at) and MESA_SHADER_CACHE_DIR set to a directory of the leg's own in the workspace. It prints vulkaninfo's device name and subgroup sizes first and fails unless they show 128 bits and subgroups of 4, so a green step shows the width ran. scripts/lavapipe-image's nextest command takes --write and --env as run does, so the leg's cache directory and variables reach the container. scripts/linux-gate-ci gets the same step, as docs/VALIDATION.md asks of every Linux step. AGENTS.md's CI line and VALIDATION.md's note on the width name the leg and the cache rule. Nothing in product code reads either variable. Why: the planner wants a stand-in for a device whose SIMD group is 4 wide (tile GPUs are a target). The lab's 128-bit runs failed because of llvmpipe's disk cache, not our lowering. llvmpipe keys its texture functions (lp_texture_handle.c) and its cache id (lp_screen.c) without lp_native_vector_width (Mesa 26.2.4), so a cache that 256-bit runs filled gave a 128-bit shader an 8-wide texture function. A cache of the leg's own cannot collide with the 256-bit one. Verified on lavapipe (Mesa 26.2.4, LLVM 23.1.1, 128 bits, subgroups 4), at aeb0ca9560, the runtime's whole cpu_icd suite: - shared default cache: 989 tests run: 887 passed, 102 failed, 4 skipped (job m3-max-83853); - the cache off: 989 tests run: 989 passed (2 slow), 4 skipped (job m3-max-83888); - gdb on two of the crashes stops at the same JIT store, vmovaps of a ymm register, the 4th of four plus a byte at 0x80: an 8-wide texel struct written into a 4-wide caller (job m3-max-83878). The step itself ran in the lab from ci.yml's step text, in the pinned lavapipe image (Mesa 26.2.4-arch1.1, LLVM 23.1.1): deviceName = llvmpipe (LLVM 23.1.1, 128 bits), subgroupSize 4 (min and max 4); 764 runtime device tests listed; Summary 762 tests run: 762 passed, 231 skipped; job exit 0 (job m3-max-83928, on the RTX 5080 Laptop machine's lavapipe). scripts/linux-gate-ci's new step passed bash -n only; it has not run end to end. No Rust changed, so clippy, Rustdoc and the suites have the inputs they had. |
||
|
|
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. |
||
|
|
5d725aeec7 |
Delete metal2vulkan-runtime, with every test and script that read it
The cutover deletes the old runtime: crates/metal2vulkan-runtime and its workspace member go. Nothing in the workspace depends on it any more: the harness and conformance lost their old arms, and validation dropped its dependency in its own commit. Adapted in this commit, so no gate reads the deleted tree: - CI and scripts/linux-gate-ci: the crate's per-feature clippy group, its `-p` in the Windows clippy and the test step, and its private-doc-links row go. Packaging needs no edit: the workspace's published crates are now metal2vulkan and metal2vulkan-air. - The published-crates test lists those two; devtools' carried trees and the five nextest groups of the old crate's tests go. - scripts/api-signatures: the crate leaves CRATES, FLOORS and the header, its self-test trees name rt (read by the same rules), and the table is re-blessed (the old crate's 4555 rows go); api_signatures.rs pins the three crates left. - scripts/refusal-surface: the old crate's tree and its sections go (RuntimeGap, AppleOnly, Problem and the problem enums it forwards to), with their 87 reach rows, the `--delegations` verb and the test that counted the old Problem's delegations; docs/REFUSALS.md is regenerated. The basis check now holds rt's refusal enums alone, which it already required. - scripts/api-cost-coverage goes: it measured only the old crate's surface. - feature_vocabulary.rs: the old crate's two enable tables go; the Khronos and validation tables stay held to the vocabulary. - The conformance coverage generator's by-hand roots read rt instead of the old crate, and docs/CONFORMANCE-COVERAGE.md is regenerated (MTLResourceOptions' row, which only the old crate modelled, gives way to rt's MTLCommandBufferError). - scripts/matrix: the harness times the new runtime alone (`--runtime new`), so the rules that judged it against the old one go: the new-over-old budget with its floors (floors.tsv, gpu-floors.tsv), ceilings, card variance and status table (status.tsv), the frozen arm, the base spread and the timing once more it set off, the re-timed pairs, the five creation rounds and the old runtime's parked tests and records. A harness row's time is judged as a cross-GPU outlier, with its alone runs as before, and the frame and burst rows by their stored instruction counts; the creation rows run once, in their own process. docs/VALIDATION.md's matrix section says these rules. Checked locally (python, no build): signatures.py --check and --selftest, refusal_surface.py --check, --selftest and --missing-basis, coverage.py --check and --selftest, and scripts/matrix's 49 tests pass. The compile gate (fmt, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Windows clippy for gnullvm and msvc, workspace Rustdoc, packaging, the touched crates' suites on the host and on lavapipe) runs on this sha as potluck jobs that the landing note names. |
||
|
|
374e29a988 |
metal2vulkan-rt: the floor's shader features, queue family, timestamps and memory types
The floor now also requires what the translator's shaders and the runtime's core need of every device: - shaderInt16, shaderInt8, storageBuffer16BitAccess (Vulkan 1.1 features, now read and enabled through Features::vulkan11), storageBuffer8BitAccess, scalarBlockLayout, vulkanMemoryModel and vulkanMemoryModelDeviceScope. The translator emits 8- and 16-bit access only in storage and physical storage buffers in practice (uniform views are u32 or uvec4, push fields are 32- or 64-bit), so the uniform and push-constant 8/16-bit features stay out; it does use device scope. - timestampComputeAndGraphics, and timestampValidBits of at least 36 on the first queue family with graphics and compute, which Capabilities names (queue_family). A device with no such family is Missing::QueueFamily. - a host-visible, host-coherent, host-cached memory type (Shared storage) and a device-local, host-visible, host-coherent one (the parameter ring), each usable by a buffer of BUFFER_USAGE: every Vulkan 1.3 buffer usage plus device addresses. Vulkan answers buffer memory types only for a created device, so check() finds a type with each set of flags and carries the memory properties, and memory_types(device, &capabilities) chooses the first usable type of each with vkGetDeviceBufferMemoryRequirements. Missing::MemoryType names the flags. Each shortfall is named in BelowFloor, with a unit case; the README's Floor section states every item and tests::floor holds it to the code. The device test now also creates each device with the floor's features and extensions and chooses its memory types on it. CI's lavapipe step (ci.yml and scripts/linux-gate-ci) runs the rt crate's device tests too. refusal_surface.py reads metal2vulkan-rt and writes the floor's Missing as section 10 of docs/REFUSALS.md; signatures.py pins metal2vulkan-rt's public surface in api_signatures.tsv. Verified: see the lane report (compile job, device legs on every lab GPU, lavapipe and the Windows UHD 630). |
||
|
|
0307fb8c9d |
Run every Linux CI step in the gate's container, and fix what the gate caught
The Linux gate's work packet: CI's Linux steps now run in the gate's own container, and the failures that run found are fixed: depth and stencil formats over a DRM_FORMAT_MOD_LINEAR image, test IR that LLVM 21 rejects, and a frame-cost check that allocated. Run every Linux step of ci.yml in the Linux gate's container: What: scripts/linux-gate-ci gains the three steps ci.yml's Linux job runs and it did not: "Clippy under each feature alone" (metal2vulkan with no feature and with serde, ash and cli each alone; metal2vulkan-runtime; metal2vulkan-air with no feature and with serde), "Build the new API's consumer reference" (scripts/api-docs) and "Package the published crates". Its "Test metal2vulkan" step now tests the packages ci.yml's does (metal2vulkan, -air, -runtime and -devtools), where it tested metal2vulkan alone. The steps run in ci.yml's order, each with the container's build share. Why: the script's header says every Linux run: step of ci.yml has one step here, and docs/VALIDATION.md presents the container as ci.yml's Linux job; a change that broke only a feature-alone build, the reference, packaging, or the AIR front end's, runtime's or dev tools' tests passed the container and failed CI. Verified: bash -n; the steps compared one by one with ci.yml at |
||
|
|
13b279df1b |
Squash 11203 commits of translator, runtime, and validation work
Rolls up everything since
|