From 8ec9d3858b8d27fd2f67337653e9198743dba545 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 4 Dec 2026 13:40:06 -0800 Subject: [PATCH] Translator tests: the profile docs say Device::from_queries, not the resident-table domains Six test docs still named the resident-table domains, which are gone: every committed profile is now derived by Device::from_queries alone (pipeline::testing::profile, spirv::testing::committed_profiles). Each says that now: - engine_rate_map.rs profile_with, engine_rotated_colors.rs devices, fuzz_interp.rs CpuInterp::new, public_fixtures_engine.rs (module doc), api_surface.rs device: the profile as Device::from_queries derives it. - engine_workgroup_layout.rs (module doc): its two profile sets are both from_queries', the committed description as stated and without its pipeline-robustness feature (identity_profiles), not the resident-table and the identity domains. - api_surface.rs device_under named a policy parameter it does not take. Comments only; no code moves. Search: git grep -n 'resident-table domains' -- crates at 9db78abe7d: 6 hits, 0 after. --- crates/metal2vulkan/src/tests/engine_rate_map.rs | 2 +- crates/metal2vulkan/src/tests/engine_rotated_colors.rs | 2 +- crates/metal2vulkan/src/tests/engine_workgroup_layout.rs | 5 +++-- crates/metal2vulkan/src/tests/fuzz_interp.rs | 4 ++-- crates/metal2vulkan/src/tests/public_fixtures_engine.rs | 2 +- crates/metal2vulkan/tests/api_surface.rs | 4 ++-- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/crates/metal2vulkan/src/tests/engine_rate_map.rs b/crates/metal2vulkan/src/tests/engine_rate_map.rs index 891d50f92..d2eb8de2c 100644 --- a/crates/metal2vulkan/src/tests/engine_rate_map.rs +++ b/crates/metal2vulkan/src/tests/engine_rate_map.rs @@ -102,7 +102,7 @@ fn assemble(text: &str) -> Option> { } } -/// Committed profile `stem`, under the resident-table domains. +/// Committed profile `stem`, as `Device::from_queries` derives it. fn profile_with(stem: &str) -> DeviceProfile { crate::pipeline::testing::profile(stem).expect("committed profile") } diff --git a/crates/metal2vulkan/src/tests/engine_rotated_colors.rs b/crates/metal2vulkan/src/tests/engine_rotated_colors.rs index 7f3b7702d..58d06c8b3 100644 --- a/crates/metal2vulkan/src/tests/engine_rotated_colors.rs +++ b/crates/metal2vulkan/src/tests/engine_rotated_colors.rs @@ -35,7 +35,7 @@ use crate::pipeline::{ }; use crate::vk; -/// Every committed profile as a device under the resident-table domains, by stem. +/// Every committed profile as a device from `Device::from_queries`, by stem. fn devices() -> Vec<(String, Device)> { let dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) .join("../metal2vulkan-validation/profiles"); diff --git a/crates/metal2vulkan/src/tests/engine_workgroup_layout.rs b/crates/metal2vulkan/src/tests/engine_workgroup_layout.rs index 4302e9d79..6bf05cc51 100644 --- a/crates/metal2vulkan/src/tests/engine_workgroup_layout.rs +++ b/crates/metal2vulkan/src/tests/engine_workgroup_layout.rs @@ -8,8 +8,9 @@ //! Each fixture of `validation/fixtures/public/` and its `engine/` directory whose text reaches //! threadgroup memory, a SIMD-group or quad function, or a mesh or object stage (`addrspace(3)`, //! `@air.simd_`, `@air.quad_`, `air.mesh`, `air.object`) is compiled, every entry its ABI declares, -//! on every committed profile under the resident-table domains and under the identity domains (the -//! runtime's), each from `Device::from_queries`, and each module compiled +//! on every committed profile from `Device::from_queries`, once as the profile's description states +//! it and once without its pipeline-robustness feature (`identity_profiles`, whose kernels reach +//! their buffer arguments through their device addresses), and each module compiled //! is read: it declares none of the three capabilities, its requirements name neither the //! extension (Vulkan's or SPIR-V's) nor its features, and each part compiles modules that //! declare `Workgroup` variables. Each part counts the modules whose threadgroup arena is sized at diff --git a/crates/metal2vulkan/src/tests/fuzz_interp.rs b/crates/metal2vulkan/src/tests/fuzz_interp.rs index ea64d82e6..c90862cbb 100644 --- a/crates/metal2vulkan/src/tests/fuzz_interp.rs +++ b/crates/metal2vulkan/src/tests/fuzz_interp.rs @@ -115,8 +115,8 @@ pub(super) struct CpuInterp { } impl CpuInterp { - /// The executor for committed profile `stem` (`validation/profiles/.json`, derived - /// under the resident-table domains), dispatching [`THREADS`] threads. `Ok(None)` when + /// The executor for committed profile `stem` (`validation/profiles/.json`, derived by + /// `Device::from_queries`), dispatching [`THREADS`] threads. `Ok(None)` when /// `llvm-as` is not installed: the caller skips visibly, because there is no way to turn /// generated text into bitcode. pub(super) fn new(stem: &str) -> Result, String> { diff --git a/crates/metal2vulkan/src/tests/public_fixtures_engine.rs b/crates/metal2vulkan/src/tests/public_fixtures_engine.rs index 5f5585a7e..421d5dc00 100644 --- a/crates/metal2vulkan/src/tests/public_fixtures_engine.rs +++ b/crates/metal2vulkan/src/tests/public_fixtures_engine.rs @@ -3,7 +3,7 @@ //! Every `.ll` fixture at the top level of `validation/fixtures/public/` and in its `engine/` //! directory is assembled to bitcode (`llvm-as`; a typed-pointer `.air.ll` through `xcrun //! metal-as`), every entry point its ABI declares is compiled by the engine for every committed -//! profile under the resident-table domains with no function constants and default lowering inputs, +//! profile, as `Device::from_queries` derives it, with no function constants and default lowering inputs, //! and the outcome is recorded: //! //! - `ok`: compiled, linked, relocated, and passed L3 (requirements within the profile and diff --git a/crates/metal2vulkan/tests/api_surface.rs b/crates/metal2vulkan/tests/api_surface.rs index 808464f7d..7dc02efee 100644 --- a/crates/metal2vulkan/tests/api_surface.rs +++ b/crates/metal2vulkan/tests/api_surface.rs @@ -758,12 +758,12 @@ fn fixture(stem: &str) -> Option> { common::llvm_as(&text, &format!("{stem}.ll")) } -/// Committed profile `stem` as a device with the resident-table domains. +/// Committed profile `stem` as a device from `Device::from_queries`. fn device(stem: &str) -> Device { device_under(stem) } -/// [`device`] under `policy`. +/// Committed profile `stem`'s description through `Device::from_queries` ([`device`]). fn device_under(stem: &str) -> Device { let path = Path::new(env!("CARGO_MANIFEST_DIR")) .join("../metal2vulkan-validation/profiles")