diff --git a/crates/metal2vulkan-conformance/src/cases/fresh_contents.rs b/crates/metal2vulkan-conformance/src/cases/fresh_contents.rs index 002bf552d..209aab747 100644 --- a/crates/metal2vulkan-conformance/src/cases/fresh_contents.rs +++ b/crates/metal2vulkan-conformance/src/cases/fresh_contents.rs @@ -2105,8 +2105,10 @@ mod tests { /// (`BGRA10_XR`, its sRGB twin, `RGB9E5Float`; the notes lavapipe announced) name a further /// 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. + /// row declares `restricted-depth-upload` too, the notices MoltenVK announced; and a + /// block-compressed texture row declares `compressed-texel-decode`, which `metal2vulkan-rt` + /// announces for every such texture. 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); @@ -2136,10 +2138,19 @@ mod tests { for row in TEXTURES { let private = row.storage == Storage::Private; let depth = row.shape.format == DEPTH32FLOAT.format; + let compressed = row.shape.block.1 > 1; let allowances = FreshTexture { row }.allowances(); assert_eq!( allowances.len(), - 1 + usize::from(private) + 3 * usize::from(depth), + 1 + usize::from(private) + 3 * usize::from(depth) + usize::from(compressed), + "{}", + row.case + ); + assert_eq!( + allowances.contains(&crate::replay::notice_allowance( + metal2vulkan_runtime::Degradation::CompressedTexelDecode.code() + )), + compressed, "{}", row.case ); diff --git a/docs/API.md b/docs/API.md index a519b9b78..7c530c388 100644 --- a/docs/API.md +++ b/docs/API.md @@ -4027,12 +4027,15 @@ bound. Cost: a read, sample or gather of its texels answers the device's decode of its blocks (an sRGB form's code through the device's sRGB decode), where Metal interpolates with 6-bit weights: a BC1 to BC3 channel up to 4/255 off Metal's on NVIDIA (615.71.09, the RTX 3090 and RTX 5080 Laptop - GPU; 620.70.06, the RTX 2080, 3/255; BC3's alpha 6/255 on both), 3/255 on lavapipe, 1/255 on ANV - (the Iris Xe of Raptor Lake-P) and Intel's Windows driver (the UHD 630; BC3's alpha 2/255 on - both); a BC4 or BC5 channel up to 7.4/255 (signed 0.065) on NVIDIA, 1.4/255 (signed 0.0134) on - ANV and Intel's Windows driver, 2.4/255 (signed 0.022) on lavapipe, and on RADV + GPU; BC3's alpha 6/255), 3/255 on lavapipe, 1/255 on ANV; a BC4 or BC5 channel up to 7.4/255 + (signed 0.065) on NVIDIA, 1.3/255 (signed 0.013) on ANV, 2.4/255 (signed 0.022) on lavapipe, and on RADV (Mesa 26.2.4, the Radeon 780M) a signed texel with an endpoint of -128 up to 1.7/255; a BC7 - channel a `float` ulp on lavapipe; its blocks' bytes, copies and sizes are Metal's. + channel a `float` ulp on lavapipe; its blocks' bytes, copies and sizes are Metal's. Measured + on more drivers: NVIDIA's 620.70.06 (the RTX 2080) a BC1 to BC3 channel 3/255 (BC3's alpha + 6/255) and a BC4 or BC5 channel 7.33/255 (signed 0.064); ANV (the Iris Xe of Raptor Lake-P) and + Intel's Windows driver (the UHD 630) BC3's alpha 2/255 and a BC4 or BC5 channel 1.4/255 (signed + 0.0134), a BC4 or BC5 texel within 0.0001 of the specification's exact decode there, so what + moves is Metal's 6-bit weights. - `metal2vulkan-degrade-cpu-block-decode` (performance). `CpuBlockDecode`: A CPU copy into a texture with a decoded twin (`replace_region`) whose CPU copies go on the host or the staging queue: its region is decoded on the CPU, on the device's decode thread, and copied into the twin; the first diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index 7ea4b0c59..7658f82ac 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -44,7 +44,7 @@ Its limits, measured rather than asserted: | committed recordings | 1285 | | distinct SDK items the Metal leg reaches, of any status | 822 | | of those, reached only where this cannot name the family | 3 | -| ledger rows (a case whose gap is recorded) | 3731 | +| ledger rows (a case whose gap is recorded) | 3642 | | 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 | @@ -3565,90 +3565,6 @@ A case whose difference from Metal is recorded rather than compared away. The le | `blit-generated-mipmaps-bgra10xr` | `generateMipmapsForTexture:` of a 64x64 `Shared` `BGRA10_XR` texture of seven levels is the runtime's bilinear compute filter in the device's `float` (`mipmap_f… | | `blit-generated-mipmaps-bgra10xr` | `generateMipmapsForTexture:` of a 64x64 `Shared` `BGRA10_XR` texture of seven levels is the runtime's bilinear compute filter in the device's `float` (`mipmap_f… | | `blit-generated-mipmaps-bgra10xr` | `generateMipmapsForTexture:` of a 64x64 `Shared` `BGRA10_XR` texture of seven levels is the runtime's bilinear compute filter in the device's `float` (`mipmap_f… | -| `bc1-rgba` | A BC1 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc1-rgba` | A BC1 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc1-rgba` | A BC1 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc1-rgba` | A BC1 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc1-rgba` | A BC1 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc1-rgba` | A BC1 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc1-rgba` | A BC1 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc1-rgba` | A BC1 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc1-rgba` | A BC1 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc1-rgba` | A BC1 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc1-rgba` | A BC1 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc1-rgba` | A BC1 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc1-rgba-srgb` | A BC1 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc1-rgba-srgb` | A BC1 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc1-rgba-srgb` | A BC1 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc1-rgba-srgb` | A BC1 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc1-rgba-srgb` | A BC1 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc1-rgba-srgb` | A BC1 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc1-rgba-srgb` | A BC1 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc1-rgba-srgb` | A BC1 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc2-rgba` | A BC2 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc2-rgba` | A BC2 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc2-rgba` | A BC2 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc2-rgba` | A BC2 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc2-rgba` | A BC2 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc2-rgba` | A BC2 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc2-rgba` | A BC2 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc2-rgba` | A BC2 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc2-rgba-srgb` | A BC2 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc2-rgba-srgb` | A BC2 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc2-rgba-srgb` | A BC2 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc2-rgba-srgb` | A BC2 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc2-rgba-srgb` | A BC2 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc2-rgba-srgb` | A BC2 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc2-rgba-srgb` | A BC2 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc2-rgba-srgb` | A BC2 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc3-rgba` | A BC3 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc3-rgba` | A BC3 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc3-rgba` | A BC3 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc3-rgba` | A BC3 texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights and rounds each channel to an 8-bit code; ours is the device's own dec… | -| `bc3-rgba` | A BC3 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc3-rgba` | A BC3 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc3-rgba` | A BC3 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc3-rgba` | A BC3 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc3-rgba-srgb` | A BC3 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc3-rgba-srgb` | A BC3 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc3-rgba-srgb` | A BC3 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc3-rgba-srgb` | A BC3 sRGB texel read on lavapipe: Metal interpolates the block's endpoints with 6-bit weights, rounds each channel to an 8-bit code and decodes the code throug… | -| `bc3-rgba-srgb` | A BC3 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc3-rgba-srgb` | A BC3 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc3-rgba-srgb` | A BC3 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc3-rgba-srgb` | A BC3 sRGB texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (t… | -| `bc4-r-unorm` | A BC4 unsigned texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 16320, unrounded; ours is the devi… | -| `bc4-r-unorm` | A BC4 unsigned texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 16320, unrounded; ours is the devi… | -| `bc4-r-unorm` | A BC4 unsigned texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 16320, unrounded; ours is the devi… | -| `bc4-r-unorm` | A BC4 unsigned texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 16320, unrounded; ours is the devi… | -| `bc4-r-unorm` | A BC4 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc4-r-unorm` | A BC4 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc4-r-unorm` | A BC4 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc4-r-unorm` | A BC4 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc4-r-snorm` | A BC4 signed texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 8128, unrounded; ours is the device'… | -| `bc4-r-snorm` | A BC4 signed texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 8128, unrounded; ours is the device'… | -| `bc4-r-snorm` | A BC4 signed texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 8128, unrounded; ours is the device'… | -| `bc4-r-snorm` | A BC4 signed texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 8128, unrounded; ours is the device'… | -| `bc4-r-snorm` | A BC4 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc4-r-snorm` | A BC4 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc4-r-snorm` | A BC4 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc4-r-snorm` | A BC4 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc5-rg-unorm` | A BC5 unsigned texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 16320, unrounded; ours is the devi… | -| `bc5-rg-unorm` | A BC5 unsigned texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 16320, unrounded; ours is the devi… | -| `bc5-rg-unorm` | A BC5 unsigned texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 16320, unrounded; ours is the devi… | -| `bc5-rg-unorm` | A BC5 unsigned texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 16320, unrounded; ours is the devi… | -| `bc5-rg-unorm` | A BC5 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc5-rg-unorm` | A BC5 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc5-rg-unorm` | A BC5 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc5-rg-unorm` | A BC5 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc5-rg-snorm` | A BC5 signed texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 8128, unrounded; ours is the device'… | -| `bc5-rg-snorm` | A BC5 signed texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 8128, unrounded; ours is the device'… | -| `bc5-rg-snorm` | A BC5 signed texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 8128, unrounded; ours is the device'… | -| `bc5-rg-snorm` | A BC5 signed texel read on lavapipe: Metal interpolates the channel's endpoints with 6-bit weights and answers its sum over 8128, unrounded; ours is the device'… | -| `bc5-rg-snorm` | A BC5 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc5-rg-snorm` | A BC5 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc5-rg-snorm` | A BC5 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | -| `bc5-rg-snorm` | A BC5 texel read on the RTX 5080: Metal interpolates the block's endpoints with 6-bit weights; ours is the device's own decode of the texture's BC image (the ru… | | `etc2-rgb8` | A read of an ETC2 or EAC 8-bit form's texels through its decoded twin, which holds Metal's own codes: the device converts each code by the reciprocal product, s… | | `etc2-rgb8-srgb` | A read of an ETC2 or EAC sRGB form's texels through its decoded twin's `R8G8B8A8_SRGB` view, which holds Metal's own codes: the device decodes each 8-bit code b… | | `etc2-rgb8-srgb` | A read of an ETC2 or EAC sRGB form's texels through its decoded twin's `R8G8B8A8_SRGB` view, which holds Metal's own codes: the device decodes each 8-bit code b… | @@ -5514,11 +5430,6 @@ A case whose difference from Metal is recorded rather than compared away. The le | `bc3-rgba-srgb` | A BC3 sRGB texel read: the device decodes the texture's BC image itself (the runtime keeps no decoded twin of a BC texture), and decodes each sRGB code by its o… | | `bc3-rgba-srgb` | A BC3 sRGB texel read: the device decodes the texture's BC image itself (the runtime keeps no decoded twin of a BC texture), and decodes each sRGB code by its o… | | `bc3-rgba-srgb` | A BC3 sRGB texel read: the device decodes the texture's BC image itself (the runtime keeps no decoded twin of a BC texture), and decodes each sRGB code by its o… | -| `bc4-r-snorm` | A BC4 signed texel read: ours is the device's own decode of the texture's BC image (the runtime keeps no decoded twin of a BC texture), where Metal interpolates… | -| `bc4-r-unorm` | A BC4 texel read: ours is the device's own decode of the texture's BC image (the runtime keeps no decoded twin of a BC texture), where Metal interpolates the bl… | -| `bc5-rg-snorm` | A BC5 signed texel read: ours is the device's own decode of the texture's BC image (the runtime keeps no decoded twin of a BC texture), where Metal interpolates… | -| `bc5-rg-snorm` | A BC5 signed texel read: ours is the device's own decode of the texture's BC image (the runtime keeps no decoded twin of a BC texture), where Metal interpolates… | -| `bc5-rg-snorm` | A BC5 signed texel read: ours is the device's own decode of the texture's BC image (the runtime keeps no decoded twin of a BC texture), where Metal interpolates… | | `blend-interaction-format-srgb8` | Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device enco… | | `blend-interaction-format-srgb8` | Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device enco… | | `blend-interaction-format-srgb8` | Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device enco… |