fresh_contents: the Depth32Float rows' zeroed-pattern declarations are held by the row test

The family's declaration test held every allowance to the notices site or
the fresh value declaration, so the two Depth32Float rows' unchecked fresh
site under fresh-pattern-zeroed (55df5fa64b) failed it. The test now names
that declaration, counts the texture row's three extra allowances and the
pattern row's two, and checks no other row carries it.
docs/CONFORMANCE-COVERAGE.md is regenerated
(python3 -I scripts/conformance-coverage/coverage.py): fresh_contents now
loosens one measured value.

Verified: both failed in the conformance suite on gem10 (job 10312); the
rerun follows.

(cherry picked from commit 184d622fa578658947c19dd19df29ff160a91b9b)
This commit is contained in:
Anees Iqbal committed 2026-11-08 18:15:24 -08:00
1 parent 970c17cea8
commit 733108b25d
2 files changed
+27 -10

No files matched your search

@@ -2095,12 +2095,15 @@ mod tests {
/// **only** the three pattern rows whose read blits out of a texture Metal keeps compressed in
/// a format whose canonical encoding the device's copy may keep apart from Metal's
/// (`BGRA10_XR`, its sRGB twin, `RGB9E5Float`; the notes lavapipe announced) name a further
/// notice. A row whose notices were a guess would show here as a row loosening a site nothing
/// needed.
/// notice. The two `Depth32Float` rows apart: each also leaves its `fresh` site unchecked under
/// `fresh-pattern-zeroed` and declares that notice ([`zeroed_depth_pattern`]), and the texture
/// row declares `restricted-depth-upload` too, the notices MoltenVK announced. A row whose
/// notices were a guess would show here as a row loosening a site nothing needed.
#[test]
fn a_row_loosens_the_notices_site_and_a_private_texture_s_fresh_site() {
let notices = format!("case/{}/*", crate::replay::NOTICES_SITE);
let fresh = crate::replay::without_compression("fresh");
let [zeroed, _] = zeroed_depth_pattern();
let shared = metal2vulkan_runtime::Degradation::SharedInSystemMemory
.code()
.to_owned();
@@ -2108,7 +2111,7 @@ mod tests {
let allowances = case.allowances();
for allowance in &allowances {
assert!(
allowance.path == notices || *allowance == fresh,
allowance.path == notices || *allowance == fresh || *allowance == zeroed,
"{}: {allowance:?}",
case.name()
);
@@ -2124,9 +2127,16 @@ mod tests {
}
for row in TEXTURES {
let private = row.storage == Storage::Private;
let depth = row.shape.format == DEPTH32FLOAT.format;
let allowances = FreshTexture { row }.allowances();
assert_eq!(allowances.len(), 1 + usize::from(private), "{}", row.case);
assert_eq!(
allowances.len(),
1 + usize::from(private) + 3 * usize::from(depth),
"{}",
row.case
);
assert_eq!(allowances.contains(&fresh), private, "{}", row.case);
assert_eq!(allowances.contains(&zeroed), depth, "{}", row.case);
}
// Everything else is held to Metal exactly, the venue's own notice apart.
for (case, storage) in BUFFERS {
@@ -2148,9 +2158,16 @@ mod tests {
row.case,
"fresh-pattern-552" | "fresh-pattern-553" | "fresh-pattern-93"
);
let depth = row.format == DEPTH32FLOAT.format;
let allowances = FreshPattern { row }.allowances();
assert_eq!(allowances.len(), 2 + usize::from(kept), "{}", row.case);
assert_eq!(
allowances.len(),
2 + usize::from(kept) + 2 * usize::from(depth),
"{}",
row.case
);
assert!(allowances.contains(&fresh), "{}", row.case);
assert_eq!(allowances.contains(&zeroed), depth, "{}", row.case);
}
}
+5 -5
View File
@@ -38,8 +38,8 @@ Its limits, measured rather than asserted:
| of the reachable, exercised by the suite's Metal leg | 814 |
| of the reachable, not exercised | 161 |
| share of the reachable exercised | 83% |
| of those exercised, no case reaching it loosens anything | 573 |
| of those exercised, a case reaching it loosens some site | 241 |
| of those exercised, no case reaching it loosens anything | 572 |
| of those exercised, a case reaching it loosens some site | 242 |
| case modules | 161 |
| committed recordings | 1233 |
| distinct SDK items the Metal leg reaches, of any status | 821 |
@@ -535,8 +535,8 @@ An implemented container no case's Metal leg touches. These are the families of
| cases whose Metal answer is `metal_run` | 1149 |
| cases whose Metal answer is `carried` | 80 |
| cases whose Metal answer is `never_returned` | 4 |
| modules that loosen a measured value | 11 |
| tolerances in all | 11 |
| modules that loosen a measured value | 12 |
| tolerances in all | 12 |
| modules declaring a notice (loosening no value) | 127 |
| loosenings used | `Unchecked`, `Absolute`, `AnyOf`, `Nonzero` |
| justifications named | `Degradation`, `AcceptedDifference`, `WithoutCompression` |
@@ -610,7 +610,7 @@ Each case module: the cases it holds, the `Side` methods it calls, and how many
| `format_footprints` | 6 | 6 | every field | 21 |
| `fragment_imageblock_reflection` | 1 | 1 | every field | 74 |
| `frame_chains` | 1 | 1 | every field | 147 |
| `fresh_contents` | 87 | 87 | every field | 50 |
| `fresh_contents` | 87 | 87 | 1 tolerance(s): `Degradation` | 50 |
| `function_bindings` | 15 | 15 | every field | 65 |
| `function_facts` | 15 | 15 | every field | 38 |
| `half_output_blends` | 6 | 6 | every field | 125 |