From e71499dc9bf62f3d1755ffdb030647a69b5db8d0 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 24 Oct 2026 22:15:15 +0300 Subject: [PATCH] Put the parity scenarios' design citations back, with the reason Content: the tree of `development` at 19193d4605, unchanged. --- crates/metal2vulkan-validation/src/parity/api.rs | 2 +- crates/metal2vulkan-validation/src/parity/record.rs | 2 +- .../src/parity/scenarios/buffer_copies.rs | 2 +- .../src/parity/scenarios/buffer_texture_copies.rs | 8 ++++---- .../src/parity/scenarios/command_buffer_times.rs | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/metal2vulkan-validation/src/parity/api.rs b/crates/metal2vulkan-validation/src/parity/api.rs index 677fc983d..24cc4489a 100644 --- a/crates/metal2vulkan-validation/src/parity/api.rs +++ b/crates/metal2vulkan-validation/src/parity/api.rs @@ -1,4 +1,4 @@ -//! The Metal API a scenario is written against: Metal's calls, shaped as +//! The Metal API a scenario is written against (DESIGN D308 item 7): Metal's calls, shaped as //! the runtime's own vocabulary (`ResourceOptions`, `TextureDescriptor`, `Size`, `Origin`, //! `BlitOption`), which Metal's side maps onto `objc2-metal` and the runtime's side passes on. //! diff --git a/crates/metal2vulkan-validation/src/parity/record.rs b/crates/metal2vulkan-validation/src/parity/record.rs index 9c0bd29fe..1a6ca6f0a 100644 --- a/crates/metal2vulkan-validation/src/parity/record.rs +++ b/crates/metal2vulkan-validation/src/parity/record.rs @@ -1,4 +1,4 @@ -//! The parity records: what a scenario observed, record by record, one line +//! The parity records (DESIGN D308 item 7): what a scenario observed, record by record, one line //! per Metal environment in `corpus/observations/parity/.jsonl`, and the exact //! comparison of a run's records with them. //! diff --git a/crates/metal2vulkan-validation/src/parity/scenarios/buffer_copies.rs b/crates/metal2vulkan-validation/src/parity/scenarios/buffer_copies.rs index e11354032..17ed8a9c4 100644 --- a/crates/metal2vulkan-validation/src/parity/scenarios/buffer_copies.rs +++ b/crates/metal2vulkan-validation/src/parity/scenarios/buffer_copies.rs @@ -2,7 +2,7 @@ //! `fillBuffer:range:value:` at odd offsets and lengths, between buffers and within one, and the //! calls Metal's API validation stops that the runtime refuses (a range past either buffer, a //! fill past the buffer). A zero size and an empty fill, which plain Metal runs as nothing and -//! the runtime too, are the lane tests' (`runtime_lane::blits`). +//! the runtime too, are the lane tests' (`runtime_lane::blits`, DESIGN D406 item 2). use super::super::api::{Api, Observation}; use super::steps::{pattern, shared_with, submit}; diff --git a/crates/metal2vulkan-validation/src/parity/scenarios/buffer_texture_copies.rs b/crates/metal2vulkan-validation/src/parity/scenarios/buffer_texture_copies.rs index ca06245b3..a824ebd4e 100644 --- a/crates/metal2vulkan-validation/src/parity/scenarios/buffer_texture_copies.rs +++ b/crates/metal2vulkan-validation/src/parity/scenarios/buffer_texture_copies.rs @@ -5,14 +5,14 @@ //! texture of two slices and two levels, written from padded rows at an offset, one slice's //! sub-region written again, and every level and slice read back into one buffer with padded //! rows, its padding left as it was. -//! - **Metal's rules**, from a probe of our own: offsets, row and image pitches, a compressed +//! - **Metal's rules** (probe 3's cases, D305): offsets, row and image pitches, a compressed //! region and a buffer exactly as long as the rows, each copy taken and its texels read back. //! The scenario holds valid usage only, since its records are made on this Mac's M3 Max, where -//! no misuse runs. The copies plain Metal makes of offsets and pitches off +//! no misuse runs (DESIGN D449 item 6). The copies plain Metal makes of offsets and pitches off //! the copy unit, of compressed regions off their blocks and of a combined depth/stencil //! texture without a blit option, which the runtime makes too, are the lane tests' -//! (`runtime_lane::texture_blits`), and so are those of an image pitch off -//! Metal's rules (`runtime_lane::textures`); the copies Metal's validation +//! (`runtime_lane::texture_blits`, DESIGN D418), and so are those of an image pitch off +//! Metal's rules (`runtime_lane::textures`, DESIGN D449 item 6); the copies Metal's validation //! stops and the runtime refuses (a pitch below a row at offset 0, a region past the texture, //! a buffer too short) are the runtime's unit tests' (`tests::blit_plan`, //! `tests::copy_plan`). diff --git a/crates/metal2vulkan-validation/src/parity/scenarios/command_buffer_times.rs b/crates/metal2vulkan-validation/src/parity/scenarios/command_buffer_times.rs index d2f421d46..05a0dade1 100644 --- a/crates/metal2vulkan-validation/src/parity/scenarios/command_buffer_times.rs +++ b/crates/metal2vulkan-validation/src/parity/scenarios/command_buffer_times.rs @@ -1,5 +1,5 @@ //! Scenario `command_buffer_times`: a command buffer's `GPUStartTime`, `GPUEndTime`, -//! `kernelStartTime` and `kernelEndTime`, in the host's time base, for a +//! `kernelStartTime` and `kernelEndTime`, in the host's time base (DESIGN D308 item 8), for a //! command buffer with no work, one fill, and a fill on each side of a shared event's signal and //! wait. The records are facts, never the times: each of the four is 0 before the commit; once //! the command buffer completed, the kernel times lie in order between the host times around its