Put the parity scenarios' design citations back, with the reason

Content: the tree of `development` at 19193d4605, unchanged.
This commit is contained in:
Anees Iqbal committed 2026-10-26 13:19:14 +02:00
1 parent fae55f44cf
commit e71499dc9b
5 files changed
+8 -8

No files matched your search

@@ -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.
//!
@@ -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/<scenario>.jsonl`, and the exact
//! comparison of a run's records with them.
//!
@@ -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};
@@ -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`).
@@ -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