Declare the venue difference at every compressed-blits format's seven blit sites

The previous commit declared the without-compression accepted difference only for the BGRA10_XR
rows, on the reasoning that the other two formats' blits write no canonical encoding of the
runtime's own. That was wrong about what the recording holds: the M3 Max recording of
compressed-blits-rg11b10f and -rgb9e5f carries Metal's compressor's canonical encoding (the quiet
NaN; the least shared exponent) at the seven sites a blit reaches through the compressed texture,
and on a venue presenting no compression the runtime now announces no device-nan-encoding or
shared-exponent-kept note there, so nothing justified those sites.

Measured on the RTX 5080 Laptop (potluck job m3-max-120, conformance replay --gpu at
fd34a10316): compressed-blits-rg11b10f and compressed-blits-rgb9e5f each diverge at exactly
case/tall, level-3-padded, cpu-in-blit-out, blit-in-cpu-out, out-of-compressed, into-compressed
and over-a-buffer, unlisted in known-gaps.tsv. A Mac without the compression keeps the bytes
through every blit (docs/API.md's entry already says "any texture"), so each format now declares
replay::without_compression at those sites, and the family's test expects the seven for every
format.

Verified on the M3 Max, no device: cargo clippy -D warnings on metal2vulkan-conformance (all
targets, all features); nextest of the conformance compressed_blits, fresh_contents, allowance
and replay tests 29/29; docs/CONFORMANCE-COVERAGE.md re-derives unchanged. UNVERIFIED: the 5080
replay with this commit has not run yet.

(cherry picked from commit e105b274c6f410876117dbdfd50872052ab0acd6)
This commit is contained in:
Anees Iqbal committed 2026-11-05 02:08:30 -08:00
1 parent 64bea51c0c
commit 17337510f4
1 file changed
+14 -16
@@ -674,18 +674,18 @@ impl Case for CompressedBlits {
crate::replay::notice_allowance(Degradation::ShadowedTexture.code()),
];
allowances.extend(kept_encoding_notice(self.format().format.as_raw()));
// On a venue that presents no texture compression no texture is compressed, so the
// runtime writes no `BGRA10_XR` texel in Metal's canonical encoding, even under the suite's
// exact policy, and each site a blit reaches through the compressed texture holds the
// bytes the device's copy kept ([`COMPRESSED_SITES`]). Expected, not yet run on such a
// venue. The other two formats' blits write no canonical encoding of the runtime's own.
if self.format().note == Degradation::ExtendedRangeBitsKept {
allowances.extend(
COMPRESSED_SITES
.iter()
.map(|site| crate::replay::without_compression(site)),
);
}
// On a venue that presents no texture compression no texture is compressed: Metal's own
// uncompressed texture keeps its bytes through every blit, so each site a blit reaches
// through the texture the recording's Mac compressed holds the bytes the device's copy
// kept ([`COMPRESSED_SITES`]), where the recording holds the compressor's canonical
// encoding, and the runtime announces no note for it and, under the suite's exact policy,
// rewrites no `BGRA10_XR` texel. Every format's: the RTX 5080's run differs at exactly
// these seven sites for each.
allowances.extend(
COMPRESSED_SITES
.iter()
.map(|site| crate::replay::without_compression(site)),
);
allowances
}
@@ -759,15 +759,13 @@ mod tests {
}
let allowances = case.allowances();
// The value declarations of a venue without the compression, at the sites a blit
// reaches through it, of the formats whose canonical encoding the runtime writes.
// reaches through the texture the recording's Mac compressed, for every format.
let venue: Vec<_> = (allowances.iter())
.filter(|allowance| {
matches!(allowance.justified_by, Justification::WithoutCompression(_))
})
.collect();
let extended = note == Degradation::ExtendedRangeBitsKept;
let sites = if extended { COMPRESSED_SITES.len() } else { 0 };
assert_eq!(venue.len(), sites, "{}", case.name());
assert_eq!(venue.len(), COMPRESSED_SITES.len(), "{}", case.name());
for (allowance, site) in venue.iter().zip(COMPRESSED_SITES) {
assert_eq!(**allowance, crate::replay::without_compression(site));
}