From 027bb2e6820260be723a17ca3cb3ad8d45e1c075 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 06:22:46 -0800 Subject: [PATCH] A compute state's static threadgroup length is the kernel's own, as Metal reports it ComputePipelineMetalInfo::static_threadgroup_memory_length answered, on a device that emulates simdgroups, the declared arena plus the scratch of the most threads (32768 on lavapipe for compute-threadgroup-simd- scratch, whose kernel declares 24 KiB), and elsewhere the kernel's static part plus a predicated walk's vote word. Both additions are ours: Metal's staticThreadgroupMemoryLength is the static part of the kernel's own layout (KernelFacts::static_threadgroup_bytes), and the getter now answers exactly that. The planner keeps counting the scratch and the vote word in each dispatch's total (bind::plan::compute: the arena from RuntimeFact::SimdgroupEmulation, the vote beside it, the scratch rule per region), so a dispatch whose threadgroup lengths fit beside the reported length but not beside the scratch is refused ThreadgroupMemorySize, the device's gap, where before the inflated getter kept a well-behaved client from asking. The emulated tests check both: region_k reports 0, a Metal client's remainder beside it is refused at the most threads, and a region that fits beside the arena and the scratch runs; barrier_k reports its own 31 KiB. The compute-threadgroup-simd-scratch llvmpipe row goes. The runtime getter's doc names the refusal. SEMANTICS_VERSION 1980 -> 1982 (1981 is rows2's). Verified: runs next (targeted translator tests, lavapipe replay). (cherry picked from commit dd3d0a893bf900fbf11cb885f5fb9a7b7cfd9055) --- .../metal2vulkan-conformance/known-gaps.tsv | 1 - .../metal2vulkan-runtime/src/pipeline/mod.rs | 6 +++- crates/metal2vulkan/src/bind/plan/compute.rs | 10 +++---- crates/metal2vulkan/src/cache/mod.rs | 2 +- .../metal2vulkan/src/lower/simd/workgroup.rs | 5 ++-- crates/metal2vulkan/src/pipeline/artifact.rs | 9 ++++-- .../metal2vulkan/src/pipeline/compile/api.rs | 20 ++++--------- .../src/tests/engine_simd_emulated.rs | 30 ++++++++++++------- docs/CONFORMANCE-COVERAGE.md | 3 +- 9 files changed, 45 insertions(+), 41 deletions(-) diff --git a/crates/metal2vulkan-conformance/known-gaps.tsv b/crates/metal2vulkan-conformance/known-gaps.tsv index c31861e7b..e5c815682 100644 --- a/crates/metal2vulkan-conformance/known-gaps.tsv +++ b/crates/metal2vulkan-conformance/known-gaps.tsv @@ -444,7 +444,6 @@ vertex-format-instance-step llvmpipe divergent case/MTLVertexFormatUChar4Normali vertex-format-instance-step llvmpipe divergent case/MTLVertexFormatUChar4Normalized/rows 24 elements differ (F32), the largest difference 0.00000005960464477539063 Metal converts a normalized vertex field as `c / (2^b - 1)`, correctly rounded, and this device's fixed-function vertex input is one ULP high: at the first differing element Metal answers 0x3EFEFEFF, the nearest `float` to 127/255, and we answer 0x3EFEFF00, the next `float` up, and the site's bound is that one ULP (5.96e-8, or 2.98e-8 where the differing lanes are smaller). Under the native-arithmetic contract the device's conversion is the answer: the pipeline records `device-vertex-conversion` for a normalized attribute that fixed-function vertex input fetches, and its recorded bound names exactly this, lavapipe's reciprocal product reading some 8-bit unsigned codes one ulp high. Validation derives no tolerance from it. Open: nothing. vertex-format-instance-step llvmpipe divergent case/MTLVertexFormatHalf4/rows 12 elements differ (F32), the largest difference NaN A NaN of a narrow float attribute (`half`, or a small float of `FloatRG11B10`) fetched by fixed-function vertex input: Metal answers its canonical `0x7FC00000`, and ours keeps the device's widening of the NaN, its payload included (0x7FC02000, or 0x7FFE0000 for the small float, at the first differing element). Under the native-arithmetic contract the device's widening is the answer: `device-nan-encoding` records a fixed-function attribute of a float format narrower than 32 bits, whose NaN Metal widens to `0x7FC00000` and the device's widening need not, and validation derives no tolerance from it. Open: nothing. vertex-format-instance-step NVIDIA GeForce RTX 5080 Laptop GPU divergent case/MTLVertexFormatHalf4/rows 12 elements differ (F32), the largest difference NaN A NaN of a narrow float attribute (`half`, or a small float of `FloatRG11B10`): the first differing element is Metal 0x7FC00000 against our 0x7FC02000, the device's widening of the NaN, its payload included, where Metal answers its canonical `0x7FC00000`. Under the native-arithmetic contract the device's widening is the answer: `device-nan-encoding` records an attribute of a float format narrower than 32 bits, fetched or pulled, whose NaN Metal widens to `0x7FC00000` and the device's widening need not; validation derives no tolerance from it. Open: nothing. -compute-threadgroup-simd-scratch llvmpipe divergent case/static-threadgroup-memory-length/Ok Metal 24576 (0x6000), ours 32768 (0x8000) Metal's compute pipeline state answers `staticThreadgroupMemoryLength` 24576 -- the fixture's own 24 KiB `threadgroup` array -- and we answer 32768 on this venue. This getter is the one the case compares precisely because it is the SHADER's own number and so the same wherever the shader is compiled, which this case's module docs state outright, so unlike the threadgroup-size facts beside it this is not a device limit: it is a number of ours that is not Metal's. The cause is deliberate and is in one place: on a device that emulates simdgroups the reported length is `fixed + ceil(max/32) * per_simdgroup` (crates/metal2vulkan/src/pipeline/compile/api.rs, the `static_bytes` match), which folds the emulated simdgroup scratch into the public getter so that, as the comment there says, any `[[threadgroup(n)]]` lengths that fit beside the reported length fit every threadgroup up to the maximum. The fix is to unfold the two uses: answer the kernel's own `static_threadgroup_bytes` from the getter and keep the scratch in the planner's budget, which already carries it as `RuntimeFact::SimdgroupEmulation{bytes_per_simdgroup, arena}` and already refuses a kernel whose arena and one simdgroup's scratch exceed `maxComputeSharedMemorySize` (crates/metal2vulkan/src/lower/simd/workgroup.rs's `check`). What that costs is that a dispatch whose dynamic lengths fit beside Metal's 24576 but not beside the real 32768 must be refused or re-planned rather than silently prevented by an inflated getter, and whether every such dispatch is reachable through the planner's existing check is NOT established here. Open: translator work, on the orchestrator's todo list. host-page-writes-kernel-store-read-only llvmpipe divergent case/bytes-in-a-later-command-buffer-bytes 256 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. host-page-writes-kernel-store-read-only llvmpipe divergent case/bytes-the-cpu-reads-bytes 256 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. host-page-writes-kernel-store-read-only NVIDIA GeForce RTX 5080 Laptop GPU divergent case/bytes-in-a-later-command-buffer-bytes 256 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. diff --git a/crates/metal2vulkan-runtime/src/pipeline/mod.rs b/crates/metal2vulkan-runtime/src/pipeline/mod.rs index 84c88118c..3434e65b5 100644 --- a/crates/metal2vulkan-runtime/src/pipeline/mod.rs +++ b/crates/metal2vulkan-runtime/src/pipeline/mod.rs @@ -1064,7 +1064,11 @@ impl ComputePipelineState { self.0.base.pipeline.metal_info.thread_execution_width } - /// `staticThreadgroupMemoryLength`. + /// `staticThreadgroupMemoryLength`: the kernel's own static threadgroup memory, as Metal + /// reports it. Where the device runs the kernel's simdgroups emulated, their scratch takes + /// threadgroup memory beside it, and a dispatch whose `setThreadgroupMemoryLength:` lengths + /// fit beside this length but not beside the scratch is refused + /// (`Unsupported(ThreadgroupMemorySize)`), where Metal runs it. pub fn static_threadgroup_memory_length(&self) -> u32 { self.0 .base diff --git a/crates/metal2vulkan/src/bind/plan/compute.rs b/crates/metal2vulkan/src/bind/plan/compute.rs index 0c8c746e1..3ec7eae9f 100644 --- a/crates/metal2vulkan/src/bind/plan/compute.rs +++ b/crates/metal2vulkan/src/bind/plan/compute.rs @@ -712,8 +712,8 @@ fn plan(p: &ComputePipeline, device: &Device, shape: &BindShape) -> Result Result Some((bytes_per_simdgroup, arena)), _ => None, }); - // A predicated walk's vote word sits beside the arena; the reported static length counts it, so - // the arena's own static part is the rest. + // A predicated walk's vote word sits beside the arena, counted in the total beside the static + // part, which the reported static length is. let vote = if p .dependencies .iter() @@ -734,7 +734,7 @@ fn plan(p: &ComputePipeline, device: &Device, shape: &BindShape) -> Result arena.map_or(0, u64::from), - None => u64::from(p.metal_info.static_threadgroup_memory_length).saturating_sub(vote), + None => u64::from(p.metal_info.static_threadgroup_memory_length), }; // The imageblock, the arena's last region, starts 16-byte aligned. let static_bytes = if imageblock.is_some() { diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 283b69fdc..707ff650c 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -60,7 +60,7 @@ mod tests; /// unchanged version, and its bless records the version. Independent of the crate's version and of /// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no /// history. -pub const SEMANTICS_VERSION: u32 = 1981; +pub const SEMANTICS_VERSION: u32 = 1982; /// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the /// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another diff --git a/crates/metal2vulkan/src/lower/simd/workgroup.rs b/crates/metal2vulkan/src/lower/simd/workgroup.rs index ed52c0aab..4fc3b5797 100644 --- a/crates/metal2vulkan/src/lower/simd/workgroup.rs +++ b/crates/metal2vulkan/src/lower/simd/workgroup.rs @@ -63,8 +63,9 @@ //! `RuntimeFact::SimdgroupEmulation{bytes_per_simdgroup, arena}`: the planner checks every //! dispatch region's total (the arena with the `[[threadgroup(n)]]` lengths, and the scratch of //! its simdgroups); the pipeline's `max_total_threads_per_threadgroup` is at most the threads -//! whose scratch fits beside the static arena, and its `static_threadgroup_memory_length` counts -//! the scratch of that many threads, so any threadgroup memory length Metal allows beside it fits. +//! whose scratch fits beside the static arena, and its `static_threadgroup_memory_length` is the +//! kernel's own, as Metal reports it, so a dispatch whose threadgroup memory lengths fit beside +//! that length but not beside the scratch of its simdgroups is refused (the device's gap). //! //! **Reconvergence**. The emulated operations exchange through workgroup memory between workgroup //! barriers in workgroup-uniform control flow (predicated where the source diverges), so no result diff --git a/crates/metal2vulkan/src/pipeline/artifact.rs b/crates/metal2vulkan/src/pipeline/artifact.rs index 3e47403f4..8274d785a 100644 --- a/crates/metal2vulkan/src/pipeline/artifact.rs +++ b/crates/metal2vulkan/src/pipeline/artifact.rs @@ -609,9 +609,12 @@ pub struct ComputePipelineMetalInfo { pub metal_max_total_threads_per_threadgroup: u32, /// Always 32. pub thread_execution_width: u32, - /// Bytes of statically sized threadgroup memory. A kernel whose simdgroups are emulated - /// also counts the scratch of `max_total_threads_per_threadgroup` threads and the declared - /// arena's minimum, so any `[[threadgroup(n)]]` lengths that fit beside it fit. + /// Bytes of statically sized threadgroup memory: the static part of Metal's own layout + /// (`KernelFacts::static_threadgroup_bytes`), as Metal reports it. The threadgroup memory of + /// ours beside it, an emulated simdgroup's scratch and the arena's minimum or a predicated + /// walk's vote word, is not counted: the planner counts it in each dispatch's total and + /// refuses a threadgroup whose `[[threadgroup(n)]]` lengths fit beside this length and not + /// beside it (`ThreadgroupMemorySize`, the device's gap). pub static_threadgroup_memory_length: u32, /// Echoed from the descriptor. pub support_indirect_command_buffers: bool, diff --git a/crates/metal2vulkan/src/pipeline/compile/api.rs b/crates/metal2vulkan/src/pipeline/compile/api.rs index 108d1ff4d..39227c3da 100644 --- a/crates/metal2vulkan/src/pipeline/compile/api.rs +++ b/crates/metal2vulkan/src/pipeline/compile/api.rs @@ -1124,21 +1124,11 @@ impl Device { max = max.min(cap); metal = metal.min(cap); } - // The emulated scratch of the most threads counts as static threadgroup memory, so any - // `[[threadgroup(n)]]` lengths that fit beside the reported length fit every threadgroup - // up to the maximum (the arena grows by exactly their rounded lengths). - // A predicated walk's vote word is static threadgroup memory beside the arena. - let vote = if c.facts.contains(&RuntimeFact::PredicationVote) { - u64::from(crate::lower::simd::divergent::VOTE_BYTES) - } else { - 0 - }; - let static_bytes = match emulation { - Some((per_simdgroup, fixed)) => { - fixed.saturating_add(u64::from(max).div_ceil(32).saturating_mul(per_simdgroup)) - } - None => c.kernel.static_threadgroup_bytes.saturating_add(vote), - }; + // The static part of Metal's own layout, as Metal reports it: neither the emulated + // simdgroups' scratch nor a predicated walk's vote word, which are ours and which the + // planner counts in each dispatch's total (`bind::plan::compute`), refusing a threadgroup + // whose lengths fit beside this length and not beside them (`ThreadgroupMemorySize`). + let static_bytes = c.kernel.static_threadgroup_bytes; ComputePipelineMetalInfo { max_total_threads_per_threadgroup: max, thread_execution_width: self.metal_properties().thread_execution_width, diff --git a/crates/metal2vulkan/src/tests/engine_simd_emulated.rs b/crates/metal2vulkan/src/tests/engine_simd_emulated.rs index d5a807766..c9c458927 100644 --- a/crates/metal2vulkan/src/tests/engine_simd_emulated.rs +++ b/crates/metal2vulkan/src/tests/engine_simd_emulated.rs @@ -1430,8 +1430,9 @@ fn arena_kernel(words: u32) -> Option> { /// The scratch takes 128 bytes per simdgroup and word beside the kernel's threadgroup memory. A /// kernel whose arena leaves less than one simdgroup's scratch is refused at compile time; -/// otherwise the pipeline reports the threads whose scratch fits as its maximum, and the planner -/// refuses a larger threadgroup as `ThreadgroupMemorySize`. +/// otherwise the pipeline reports the threads whose scratch fits as its maximum and its own +/// threadgroup memory as its static length, as Metal reports it, and the planner refuses a larger +/// threadgroup as `ThreadgroupMemorySize`. #[test] fn the_scratch_must_fit_beside_the_threadgroup_memory() { // vk12-floor: 16 KiB. An arena of exactly 16 KiB leaves nothing for the scratch. @@ -1453,14 +1454,14 @@ fn the_scratch_must_fit_beside_the_threadgroup_memory() { other => panic!("{other:?}"), } // lavapipe: 32 KiB. An arena of 31 KiB leaves 1 KiB, the scratch of 8 simdgroups, which the - // reported static length counts. + // reported static length, the kernel's own 31 KiB, does not count. let Some(bc) = arena_kernel(31 * 256) else { return; }; let dev = lavapipe(); let pipe = pipeline(&dev, &bc, "barrier_k"); assert_eq!(pipe.metal_info.max_total_threads_per_threadgroup, 256); - assert_eq!(pipe.metal_info.static_threadgroup_memory_length, 32 * 1024); + assert_eq!(pipe.metal_info.static_threadgroup_memory_length, 31 * 1024); let state = bind_state(None); let plan = pipe.plan(&dev, &state.shape()).expect("plan"); assert!(plan.instantiate_dispatch(&state, &threads(256)).is_ok()); @@ -1470,8 +1471,10 @@ fn the_scratch_must_fit_beside_the_threadgroup_memory() { /// A kernel that reads a `[[threadgroup(0)]]` region declares the threadgroup arena, a `u32` array /// of at least `MIN_ARENA_BYTES` even when the region is empty, beside the scratch. `region_k` /// publishes eight words per lane (1 KiB per simdgroup): lavapipe's 32 KiB fits 31 simdgroups -/// beside the 32-byte arena, not 32. The reported static length counts the arena and the scratch of -/// the most threads, so the remainder a Metal client gives the region fits. +/// beside the 32-byte arena, not 32. The reported static length is the kernel's own, 0, as Metal +/// reports it: neither the arena's minimum nor the scratch, which the planner still counts, so the +/// remainder a Metal client gives the region beside that length is refused at the most threads +/// (the device's gap, `ThreadgroupMemorySize`), and a region that fits beside the scratch runs. #[test] fn an_empty_region_declares_the_arena_beside_the_scratch() { let Some(bc) = assemble("simd_uniform") else { @@ -1487,14 +1490,19 @@ fn an_empty_region_declares_the_arena_beside_the_scratch() { ); assert!(plan.instantiate_dispatch(&state, &threads(31 * 32)).is_ok()); assert_eq!(pipe.metal_info.max_total_threads_per_threadgroup, 31 * 32); - assert_eq!( - pipe.metal_info.static_threadgroup_memory_length, - 32 + 31 * 1024 - ); - // The remainder beside the reported static length, at the most threads. + assert_eq!(pipe.metal_info.static_threadgroup_memory_length, 0); + // The remainder beside the reported static length, at the most threads: the arena and the + // scratch of 31 simdgroups do not fit beside it. let remainder = 32 * 1024 - pipe.metal_info.static_threadgroup_memory_length; let state = bind_state(Some(remainder)); let plan = pipe.plan(&dev, &state.shape()).expect("plan"); + match plan.instantiate_dispatch(&state, &threads(31 * 32)) { + Err(BindError::Unsupported(u)) => assert_eq!(u.feature, Feature::ThreadgroupMemorySize), + other => panic!("{other:?}"), + } + // A region that fits beside the arena and the scratch runs. + let state = bind_state(Some(32 * 1024 - 32 - 31 * 1024)); + let plan = pipe.plan(&dev, &state.shape()).expect("plan"); assert!(plan.instantiate_dispatch(&state, &threads(31 * 32)).is_ok()); } diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index 44e5becd5..de5303318 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -44,7 +44,7 @@ Its limits, measured rather than asserted: | committed recordings | 1228 | | distinct SDK items the Metal leg reaches, of any status | 819 | | of those, reached only where this cannot name the family | 3 | -| ledger rows (a case whose gap is recorded) | 2603 | +| ledger rows (a case whose gap is recorded) | 2602 | | declared crossings of the option space (pairs put to Metal at once) | 26 | | declared crossings that are no pair of it (a boolean or numeric field, or one type in two slots) | 30 | @@ -2591,7 +2591,6 @@ A case whose difference from Metal is recorded rather than compared away. The le | `vertex-format-instance-step` | Metal converts a normalized vertex field as `c / (2^b - 1)`, correctly rounded, and this device's fixed-function vertex input is one ULP high: at the first diff… | | `vertex-format-instance-step` | A NaN of a narrow float attribute (`half`, or a small float of `FloatRG11B10`) fetched by fixed-function vertex input: Metal answers its canonical `0x7FC00000`,… | | `vertex-format-instance-step` | A NaN of a narrow float attribute (`half`, or a small float of `FloatRG11B10`): the first differing element is Metal 0x7FC00000 against our 0x7FC02000, the devi… | -| `compute-threadgroup-simd-scratch` | Metal's compute pipeline state answers `staticThreadgroupMemoryLength` 24576 -- the fixture's own 24 KiB `threadgroup` array -- and we answer 32768 on this venu… | | `host-page-writes-kernel-store-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | | `host-page-writes-kernel-store-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | | `host-page-writes-kernel-store-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… |