From def2c7f1d7e58c02ec06b2e7ea1615c9bef9644f Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 06:25:25 -0800 Subject: [PATCH] Re-derive the conformance coverage document after the ledger removals python3 -I scripts/conformance-coverage/coverage.py: the ledger count falls from 2619 to 2605 (the four attribute-stride rows, the three slice-past used-size rows and the seven move rows), the slice-past row's note follows the ledger, and the sparse families count the allowGPUOptimizedContents call the move rows now make. Found by tests::the_conformance_coverage_document_is_what_the_sources_derive failing at fcfdf2bcb1 (job m3-max-3620, the only failure of 1,019). (cherry picked from commit cc6e6740161cc876cfdf2f8ccc008088de24970b) --- docs/CONFORMANCE-COVERAGE.md | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index 62999b6f1..44e5becd5 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -14,7 +14,7 @@ The suite reaches Metal through `objc2-metal`, whose Rust name for a binding is Its limits, measured rather than asserted: -- **1664 of 1719 call sites** in the Metal leg resolve to an item of the SDK. 23 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed. +- **1665 of 1720 call sites** in the Metal leg resolve to an item of the SDK. 23 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed. - **2 call sites send a selector `objc2-metal` binds on no Metal type at all**, so they are an item of no Metal container and there is no count for them to cost: `alloc`, `class`, which are `NSObject`'s. - **4 call sites send a selector by hand that `objc2-metal` binds no name for**, which is why they are sent with `msg_send!` rather than called. The crate names no container for such a selector, so no receiver typing can reach one and no item here is credited: `detachBacking`, `fillTexture:level:slice:region:bytes:length:`, `setFramebufferOnly:`, `setRotation:`. None of them is an implemented row of the coverage map — the generator fails rather than writing this document if one is, because that would be an item the suite exercises and nothing counts. - **8 call sites resolve to no item although some Metal type binds the selector**: an instance send whose receiver this could not type, a message to a class that does not bind the name sent to it, or a selector sent by hand to a receiver whose Rust type is a **supertype** of the one that binds it — which is often why it is sent by hand, since `objc2` casts between two protocol objects nowhere. Each sent its selector to exactly one receiver, so each exercised one item; which one is what the typing could not say. **Every one of their selectors is bound by at least one item some other call site credits**, so none of these sites proves an item is missing from the count. That is not a proof that the count is complete: such a site may have sent its selector to a type other than the credited one, and this cannot tell. To rule it out, spell the receiver's type at the call site — a `let` with a type, rather than a `let` with none — and this re-derives with the item credited to the case that calls it. A pattern binding is not one of the shapes that costs a site: a tuple, a `for`, a `match` arm and a closure parameter are each typed from what made them. @@ -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) | 2617 | +| ledger rows (a case whose gap is recorded) | 2603 | | 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 | @@ -545,7 +545,7 @@ An implemented container no case's Metal leg touches. These are the families of | `Side` methods the Metal leg reaches an SDK item through | 124 | | SDK items a case's Metal leg reaches, median | 54 | | the same, least and most | 0 and 216 | -| Metal call sites in the leg | 1719 | +| Metal call sites in the leg | 1720 | | distinct selectors the leg sends | 660 | | of those, resolved to an item of the coverage map | 653 | | oracles the recordings name | `apple-m3-max` ×1228 | @@ -680,8 +680,8 @@ Each case module: the cases it holds, the `Side` methods it calls, and how many | `shared_exponent_storage` | 5 | 5 | every field | 44 | | `simdgroup_lockstep` | 2 | 2 | every field | 26 | | `snorm_tile_store` | 7 | 7 | 1 tolerance(s): `Degradation` | 122 | -| `sparse_heaps` | 6 | 6 | every field | 29 | -| `sparse_mappings` | 14 | 14 | every field | 56 | +| `sparse_heaps` | 6 | 6 | every field | 30 | +| `sparse_mappings` | 14 | 14 | every field | 57 | | `sparse_tiles` | 4 | 4 | every field | 5 | | `srgb_fetch` | 2 | 2 | every field | 138 | | `stage_in_regions` | 1 | 1 | every field | 49 | @@ -2034,7 +2034,7 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised | `storageMode` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_gamut`, `extended_range_gradients`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `format_footprints`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_metal_sizes`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `layered_targets`, `level_sizes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_partial_barriers`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `pass_start_reads`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_creator_formats`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `texel_swizzles`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_gathers`, `ycbcr_minify`, `ycbcr_textures` | 875 | | `hazardTrackingMode` | no | — | — | | `usage` | yes | `alpha_coverage_pairs`, `argument_encoder_crossings`, `argument_encoders`, `astc_textures`, `blend_interactions`, `blend_sweeps`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_target_clears`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `color_write_masks`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `compute_encoder_commands`, `compute_render_chains`, `denormal_word_fetches`, `depth_resolve_pairs`, `depth_stencil_space`, `depth_texel_reads`, `discard_hoist`, `draw_state_changes`, `etc_textures`, `extended_range_blends`, `extended_range_gamut`, `extended_range_gradients`, `extended_range_planes`, `extended_range_targets`, `extended_range_two_planes`, `extended_swizzles`, `fetch_ordered`, `format_copies`, `format_footprints`, `frame_chains`, `fresh_contents`, `half_output_blends`, `half_read_nans`, `half_storage_writes`, `half_texel_nans`, `half_write_nans`, `heap_metal_sizes`, `host_page_writes`, `indirect_command_depth`, `indirect_commands`, `layered_targets`, `level_sizes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_partial_barriers`, `nearest_positions`, `norm_storage_writes`, `pass_attachment_pairs`, `pass_bound_pairs`, `pass_sequence_actions`, `pass_start_reads`, `pixel_downscales`, `pixel_samplers`, `primitive_type_crossings`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `render_chains`, `render_depth_stencil_state`, `render_draw_forms`, `render_residency`, `render_state`, `resource_facts`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `sampler_crossings`, `sampler_filtering`, `shader_stencil`, `shared_creator_formats`, `shared_exponent_storage`, `snorm_tile_store`, `sparse_heaps`, `sparse_mappings`, `srgb_fetch`, `stencil_resolve_pairs`, `stencil_resolved_sample`, `swizzled_storage`, `texel_swizzles`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `textures`, `tile_threadgroups`, `topology_classes`, `two_plane_copies`, `two_plane_heap_blits`, `two_plane_samples`, `visibility`, `wide_points`, `ycbcr_gathers`, `ycbcr_minify`, `ycbcr_textures` | 875 | -| `allowGPUOptimizedContents` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `format_footprints`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `resource_facts`, `sampler_crossings`, `sampler_filtering`, `shared_creator_formats`, `shared_exponent_storage`, `swizzled_storage`, `texel_swizzles`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_textures` | 348 | +| `allowGPUOptimizedContents` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_moves`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `format_footprints`, `fresh_contents`, `heap_metal_sizes`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `resource_facts`, `sampler_crossings`, `sampler_filtering`, `shared_creator_formats`, `shared_exponent_storage`, `sparse_heaps`, `sparse_mappings`, `swizzled_storage`, `texel_swizzles`, `texture_descriptor_pairs`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits`, `ycbcr_textures` | 368 | | `swizzle` | yes | `astc_textures`, `blit_encoder_commands`, `border_swizzles`, `buffer_depth_samples`, `buffer_texture_blits`, `buffer_textures`, `chroma_pairs`, `compressed_blits`, `compressed_decode`, `compressed_views`, `denormal_word_fetches`, `etc_textures`, `extended_swizzles`, `format_copies`, `fresh_contents`, `level_sizes`, `norm_storage_writes`, `pvrtc_cpu_order`, `pvrtc_rows`, `read_write_tiers`, `resource_facts`, `sampler_crossings`, `sampler_filtering`, `shared_exponent_storage`, `swizzled_storage`, `texel_swizzles`, `texture_fills`, `texture_views`, `two_plane_copies`, `two_plane_heap_blits` | 312 | ### `MTLTextureReferenceType` @@ -2239,10 +2239,6 @@ A case whose difference from Metal is recorded rather than compared away. The le | `argb8-targets-destination-alpha` | Plain Metal on this M3 Max makes and runs a render pipeline whose ARGB8Unorm colour attachment blends with DestinationAlpha and OneMinusDestinationAlpha in the … | | `binary-archive-mesh-adder` | `BinaryArchive` has three of Metal's four pipeline adders: `addMeshRenderPipelineFunctionsWithDescriptor:error:` has no counterpart at all. Metal takes the call… | | `binary-archive-sources` | Metal accepts a **metallib** as a binary archive and we refuse it. Measured on this M3 Max (macOS 27.0.1) from this case's own committed recording over three ru… | -| `attribute-stride-buffer` | Metal's `MTLAttributeStrideStatic` on a `[[stage_in]]` layout of `MTLBufferLayoutStrideDynamic` is not "read at stride 0"; it fetches the element at the bind of… | -| `attribute-stride-plural-buffers` | Metal's `MTLAttributeStrideStatic` on a `[[stage_in]]` layout of `MTLBufferLayoutStrideDynamic` is not "read at stride 0"; it fetches the element at the bind of… | -| `attribute-stride-buffer-offset` | Metal's `MTLAttributeStrideStatic` on a `[[stage_in]]` layout of `MTLBufferLayoutStrideDynamic` is not "read at stride 0"; it fetches the element at the bind of… | -| `attribute-stride-inline-bytes` | The runtime refuses a kernel's `[[stage_in]]` fetch of INLINE BYTES bound with `MTLAttributeStrideStatic`, where plain Metal answers. Measured on this M3 Max (m… | | `format-footprints-plain-stragglers` | Plain Metal makes a texture of `ARGB8Unorm_sRGB` in all eight non-multisample texture types and takes a host `replaceRegion:`/`getBytes:` round trip through eac… | | `format-footprints-one-plane-ycbcr` | The runtime answers Metal's heap footprint for Apple's nine one-plane YCbCr formats, which is arithmetic over a descriptor, but holds no image of any of them, s… | | `format-footprints-padded-wide-channels` | The runtime answers Metal's heap footprint for the ten padded 10- and 12-bit display formats, which is arithmetic over a descriptor, but holds no image of any o… | @@ -2622,17 +2618,7 @@ A case whose difference from Metal is recorded rather than compared away. The le | `resolve-stencil-under-depth-filters` | Metal resolves a multisampled depth/stencil attachment with the stencil filter `MTLMultisampleStencilResolveFilterSample0` under the depth filter `Min` or `Max`… | | `tile-simd-blur-columns` | Metal's tile render pipeline state answers `maxTotalThreadsPerThreadgroup` 1024 and ours answers 960 on this venue. The 960 is this device's own compiled limit … | | `tile-simd-blur-rows` | Metal's tile render pipeline state answers `maxTotalThreadsPerThreadgroup` 1024 and ours answers 960 on this venue. The 960 is this device's own compiled limit … | -| `sparse-mapping-a-slice-past-the-textures` | Plain Metal TAKES a sparse mapping update whose slice is past the texture's own slices, and it reaches real memory; the runtime maps nothing and counts nothing … | -| `sparse-mapping-a-slice-past-the-textures` | Plain Metal TAKES a sparse mapping update whose slice is past the texture's own slices, and it reaches real memory; the runtime maps nothing and counts nothing … | -| `sparse-mapping-a-slice-past-the-textures` | Plain Metal TAKES a sparse mapping update whose slice is past the texture's own slices, and it reaches real memory; the runtime maps nothing and counts nothing … | -| `sparse-mapping-a-slice-past-the-textures` | Plain Metal TAKES a sparse mapping update whose slice is past the texture's own slices, and it reaches real memory; the runtime maps nothing and counts nothing … | -| `sparse-mapping-move-inside-the-level` | Plain Metal reads back only a FRACTION of a sparse tile a move rebound, and we read the whole of it. Measured on this M3 Max (macOS 27.0.1, build 26A434) from t… | -| `sparse-mapping-move-inside-the-level` | Plain Metal reads back only a FRACTION of a sparse tile a move rebound, and we read the whole of it. Measured on this M3 Max (macOS 27.0.1, build 26A434) from t… | -| `sparse-mapping-move-inside-the-level` | Plain Metal reads back only a FRACTION of a sparse tile a move rebound, and we read the whole of it. Measured on this M3 Max (macOS 27.0.1, build 26A434) from t… | -| `sparse-mapping-move-inside-the-level` | Plain Metal reads back only a FRACTION of a sparse tile a move rebound, and we read the whole of it. Measured on this M3 Max (macOS 27.0.1, build 26A434) from t… | -| `sparse-mapping-move-past-the-destinations-row` | Plain Metal reads back only a FRACTION of a sparse tile a move rebound, and we read the whole of it. Measured on this M3 Max (macOS 27.0.1, build 26A434) from t… | -| `sparse-mapping-move-past-the-destinations-row` | Plain Metal reads back only a FRACTION of a sparse tile a move rebound, and we read the whole of it. Measured on this M3 Max (macOS 27.0.1, build 26A434) from t… | -| `sparse-mapping-move-of-a-clipped-source` | Plain Metal reads back only a FRACTION of a sparse tile a move rebound, and we read the whole of it. Measured on this M3 Max (macOS 27.0.1, build 26A434) from t… | +| `sparse-mapping-a-slice-past-the-textures` | Plain Metal TAKES a sparse mapping update whose slice is past the texture's own slices (its own API validation layer refuses the call) and binds the page it cha… | | `argb8-targets-unblended` | An unblended colour write into an 8-bit unorm attachment (`RGBA8Unorm`, and `ARGB8Unorm` through its byte rotation, which moves by the same count): Metal's stor… | | `argb8-targets-unblended` | An unblended colour write into an 8-bit unorm attachment (`RGBA8Unorm`, and `ARGB8Unorm` through its byte rotation, which moves by the same count): Metal's stor… | | `argb8-targets-unblended` | A colour write into an 8-bit unorm attachment (`RGBA8Unorm`, and `ARGB8Unorm` through its byte rotation, which moves by the same count): Metal's stored code and… |