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.
This commit is contained in:
Anees Iqbal committed 2026-12-04 18:12:41 -08:00
1 parent 47fec71d2a
commit 8ec9d3858b
6 files changed
+10 -9

No files matched your search

@@ -102,7 +102,7 @@ fn assemble(text: &str) -> Option<Vec<u8>> {
}
}
/// 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")
}
@@ -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");
@@ -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
+2 -2
View File
@@ -115,8 +115,8 @@ pub(super) struct CpuInterp {
}
impl CpuInterp {
/// The executor for committed profile `stem` (`validation/profiles/<stem>.json`, derived
/// under the resident-table domains), dispatching [`THREADS`] threads. `Ok(None)` when
/// The executor for committed profile `stem` (`validation/profiles/<stem>.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<Option<CpuInterp>, String> {
@@ -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
+2 -2
View File
@@ -758,12 +758,12 @@ fn fixture(stem: &str) -> Option<Vec<u8>> {
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")