Regenerate REFUSALS.md for the draw-shape sites

The per-draw changes moved RenderState's scissor check from set_scissors
to scissor_rects, and the cross-encoder shape memo's layout view now
builds TileAtSampleCount too. refusal_surface.py --check passed with the
old site lists (it does not compare them), so the table went stale.
Regenerated with python3 scripts/refusal-surface/refusal_surface.py; the
diff is the six site-list lines alone.

(cherry picked from commit ed08da17f6ca8d1f7714f76e02053c8ae68d6583)
This commit is contained in:
Anees Iqbal committed 2026-11-02 10:03:18 -08:00
1 parent ec9e0546eb
commit bd264821bf
1 file changed
+6 -6
+6 -6
View File
@@ -220,7 +220,7 @@ Columns:
| `HiddenDepthStencil` | A draw whose depth/stencil state uses depth or the stencil that the pass lacks, which plain Metal tests against a hidden `float` depth of 1.0 and... | every device (runtime piece not built) | `ours` | 2: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (hidden)`, `crates/metal2vulkan-runtime/src/render.rs (hidden_depth_stencil)` | `app`: a depth-stencil state using depth or stencil the pass lacks |
| `IndirectDrawArguments` | An indirect draw whose arguments the binding plan asks to read on the CPU (`DrawCommands::indirect_needs_arguments`) | every device (runtime piece not built) | `ours` | 5: `crates/metal2vulkan-runtime/src/index_bounds.rs (new)`, `crates/metal2vulkan-runtime/src/render.rs (draw_indexed_primitives_indirect)` (+1) | `rare`: indirect draws whose arguments the CPU must read |
| `DepthStencilResolve` | A depth/stencil resolve no Vulkan resolve mode of the device states | every device (runtime piece not built) | `ours` | 7: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs (draws_run)`, `crates/metal2vulkan-runtime/src/resolve.rs (depth_stencil)` (+3) | `rare`: depth/stencil resolve modes a device lacks |
| `TileAtSampleCount` | The tile memory of a render pass of a sample count Apple's GPUs lack (theirs are 1, 2 and 4), which a Vulkan device may have | every device (runtime piece not built) | `ours` | 2: `crates/metal2vulkan-runtime/src/render_pass.rs`, `crates/metal2vulkan-runtime/src/render_pass.rs (layout)` | `none`: tile memory at a sample count Apple's GPUs lack |
| `TileAtSampleCount` | The tile memory of a render pass of a sample count Apple's GPUs lack (theirs are 1, 2 and 4), which a Vulkan device may have | every device (runtime piece not built) | `ours` | 3: `crates/metal2vulkan-runtime/src/render/draw_shape/layout_view.rs`, `crates/metal2vulkan-runtime/src/render_pass.rs` (+1) | `none`: tile memory at a sample count Apple's GPUs lack |
| `ImageblockMasters` | A draw or tile dispatch whose imageblock is of another size than the pass's, or a draw whose fragment function's layouts are of another alignment... | every device (runtime piece not built) | `ours` | 2: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)` | `rare`: imageblocks of mixed sizes in one pass |
| `TileAndFragmentImageblocks` | A render pass that reaches its imageblock storage, from a draw whose fragment function declares an explicit imageblock or a tile dispatch whose... | every device (runtime piece not built) | `ours` | 3: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`, `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident, 2 sites)` | `rare`: explicit imageblocks shared by tile and fragment functions |
| `Metal4Api` | Metal 4's API (`MTL4CommandQueue`, `MTL4CommandBuffer`, `MTL4ArgumentTable`, `MTL4Compiler` and the rest), with the features only its programming... (not scheduled) | every device (runtime piece not built) | `ours` | family audit only: 3: `crates/metal2vulkan-runtime/src/families/features.rs (state)`, `crates/metal2vulkan-runtime/src/families/limits.rs (state)` (+1) | `app`: Metal 4 (the API is missing: METAL-COVERAGE.md) |
@@ -361,7 +361,7 @@ Columns:
| `CompiledKernel` | `new_compute_pipeline_state` | every device (a public call's own check of its arguments) | `ours`: this crate's already-compiled stage: Metal's descriptor takes a function | 1: `crates/metal2vulkan-runtime/src/pipeline/mod.rs (of_kernel)` | `-` |
| `UnspecializedFunction` | `new_compute_pipeline_state`, `new_render_pipeline_state`, `new_tile_render_pipeline_state` and `new_mesh_render_pipeline_state` | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal ends its process at a compute, render, tile and mesh state of each stage, `MTL_DEBUG_LAYER` unset | 1: `crates/metal2vulkan-runtime/src/pipeline/unspecialized.rs (check)` | `-` |
| `DuplicateLinkedFunction` | `new_compute_pipeline_state` | every device (a public call's own check of its arguments) | `metal-measured`: an M3 Max, macOS 27.0.1: plain Metal's creation fails with code 3, `binary_function_linking.m` | 1: `crates/metal2vulkan-runtime/src/pipeline/mod.rs (of_kernel)` | `-` |
| `RenderState` | A viewport, scissor rectangle or other render encoder state Metal stops at its setter | every device (a public call's own check of its arguments) | `delegated`: RenderStateProblem, section 9 | 3: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`, `crates/metal2vulkan-runtime/src/render_state.rs (set_scissors)` (+1) | `-` |
| `RenderState` | A viewport, scissor rectangle or other render encoder state Metal stops at its setter | every device (a public call's own check of its arguments) | `delegated`: RenderStateProblem, section 9 | 3: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`, `crates/metal2vulkan-runtime/src/render_state.rs (scissor_rects)` (+1) | `-` |
| `Visibility` | A `set_visibility_result_mode` Metal stops | every device (a public call's own check of its arguments) | `delegated`: VisibilityProblem, section 9 | 1: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)` | `-` |
| `Heap` | A heap, or a resource placed in one, Metal stops (`new_heap` and the heap's calls) | every device (a public call's own check of its arguments) | `delegated`: HeapProblem, section 9 | 13: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (buffer_over_host_memory)`, `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)` (+11) | `-` |
| `ResourceId` | A resource ID, placed or reserved, of `limit` or more | every device (a public call's own check of its arguments) | `metal-measured`: an M4 and an M3 Max, macOS 27.0.1: the IDs at which Metal ends the process, recorded in `resource_ids.rs` | 1: `crates/metal2vulkan-runtime/src/resource_ids.rs (check_limit)` | `-` |
@@ -498,7 +498,7 @@ Columns:
| `DrawProblem::PatchIndexBufferRange` | A direct patch draw's patch indices run past its patch index buffer | every device (a public call's own check of its arguments) | `metal-takes`: an M4: plain Metal reads past the patch index buffer rather than refusing, probe case `pib_short`: undefined | 2: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_patches)`, `crates/metal2vulkan-runtime/src/render.rs (check_patch_indices)` | `-` |
| `DrawProblem::ControlPointIndexBufferRange` | A direct indexed patch draw's control-point indices run past its control-point index buffer | every device (a public call's own check of its arguments) | `metal-takes`: an M4: plain Metal reads past the control-point index buffer rather than refusing, probe cases `cpi_short` and `cpi_start1_count2`: undefined | 1: `crates/metal2vulkan-runtime/src/render.rs (check_control_point_indices)` | `-` |
| `DrawProblem::IndexBufferRange` | An indirect render command's indexed draw whose `count` indices from `offset` (rounded down to a multiple of the index size, as Metal reads it)... | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1, probe `refusals_without_a_named_device` shape `idxc-past`, four fresh processes with one reading: plain Metal completes an indirect indexed draw of 12 indices from byte 480 of a 512-byte index buffer, with no error, and its vertex function is given the eight indices inside the buffer and then the four words that follow it in the heap, each of which holds its own word number -- so the fetch read the following memory by name, where the same draw made directly on the encoder was given index 0 at those four positions, `idxv-past` | 1: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (draw_indexed_primitives)` | `-` |
| `RenderStateProblem::Count` | A count of viewports outside 1 to 16, or of no scissor rectangle (more than 16 scissor rectangles are taken, as plain Metal takes them) | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a viewport count outside 1 to 16, and for no scissor rectangle, is unmeasured; the more than 16 scissor rectangles it takes are not refused | 2: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`, `crates/metal2vulkan-runtime/src/render_state.rs (set_scissors)` | `-` |
| `RenderStateProblem::Count` | A count of viewports outside 1 to 16, or of no scissor rectangle (more than 16 scissor rectangles are taken, as plain Metal takes them) | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a viewport count outside 1 to 16, and for no scissor rectangle, is unmeasured; the more than 16 scissor rectangles it takes are not refused | 2: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`, `crates/metal2vulkan-runtime/src/render_state.rs (scissor_rects)` | `-` |
| `RenderStateProblem::ViewportNotFinite` | A viewport field that is NaN or infinite, but for a NaN origin x, which draws nothing, as plain Metal's | every device (a public call's own check of its arguments) | `unknown`: plain Metal's answer for a viewport field that is NaN or infinite is measured only for a NaN origin x, which draws nothing and is not refused | 1: `crates/metal2vulkan-runtime/src/render_state.rs (set_viewports)` | `-` |
| `VisibilityProblem::NoBuffer` | The pass has no visibility result buffer | every device (a public call's own check of its arguments) | `metal-measured`: an Apple M3 Max, macOS 27.0.1: plain Metal's process ends, SIGSEGV, at `setVisibilityResultMode:offset:` in a pass with no visibility result buffer | 1: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)` | `-` |
| `VisibilityProblem::OffsetOutOfRange` | An offset whose 8 bytes run past the buffer's `length` | every device (a public call's own check of its arguments) | `metal-takes`: an Apple M3 Max, macOS 27.0.1: plain Metal takes `setVisibilityResultMode:Boolean offset:64` on an 8-byte buffer and the pass ends, its validation alone saying "offset(64) + result-size(8) must be <= `[visibilityResultBuffer length](8)`" | 1: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)` | `-` |
@@ -722,7 +722,7 @@ Each refusal's sites, with the function that builds it.
- `gap::HiddenDepthStencil`: `crates/metal2vulkan-runtime/src/attachment_stand_in.rs (hidden)`; `crates/metal2vulkan-runtime/src/render.rs (hidden_depth_stencil)`
- `gap::IndirectDrawArguments`: `crates/metal2vulkan-runtime/src/index_bounds.rs (new)`; `crates/metal2vulkan-runtime/src/render.rs (draw_indexed_primitives_indirect)`; `crates/metal2vulkan-runtime/src/render.rs (draw_resident, 3 sites)`
- `gap::DepthStencilResolve`: `crates/metal2vulkan-runtime/src/depth_stencil_resolve.rs (draws_run)`; `crates/metal2vulkan-runtime/src/resolve.rs (depth_stencil)`; `crates/metal2vulkan-runtime/src/resolve.rs (plan)`; `crates/metal2vulkan-runtime/src/resolve.rs (split_steps, 2 sites)`; `crates/metal2vulkan-runtime/src/resolve.rs (steps, 2 sites)`
- `gap::TileAtSampleCount`: `crates/metal2vulkan-runtime/src/render_pass.rs`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout)`
- `gap::TileAtSampleCount`: `crates/metal2vulkan-runtime/src/render/draw_shape/layout_view.rs`; `crates/metal2vulkan-runtime/src/render_pass.rs`; `crates/metal2vulkan-runtime/src/render_pass.rs (layout)`
- `gap::ImageblockMasters`: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident)`
- `gap::TileAndFragmentImageblocks`: `crates/metal2vulkan-runtime/src/render.rs (draw_resident)`; `crates/metal2vulkan-runtime/src/render/tile_dispatch.rs (dispatch_tiles_resident, 2 sites)`
- `gap::Metal4Api`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan-runtime/src/families/limits.rs (state)`; `crates/metal2vulkan-runtime/src/families/mod.rs (audit)`
@@ -833,7 +833,7 @@ Each refusal's sites, with the function that builds it.
- `invalid::CompiledKernel`: `crates/metal2vulkan-runtime/src/pipeline/mod.rs (of_kernel)`
- `invalid::UnspecializedFunction`: `crates/metal2vulkan-runtime/src/pipeline/unspecialized.rs (check)`
- `invalid::DuplicateLinkedFunction`: `crates/metal2vulkan-runtime/src/pipeline/mod.rs (of_kernel)`
- `invalid::RenderState`: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`; `crates/metal2vulkan-runtime/src/render_state.rs (set_scissors)`; `crates/metal2vulkan-runtime/src/render_state.rs (set_viewports)`
- `invalid::RenderState`: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`; `crates/metal2vulkan-runtime/src/render_state.rs (scissor_rects)`; `crates/metal2vulkan-runtime/src/render_state.rs (set_viewports)`
- `invalid::Visibility`: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)`
- `invalid::Heap`: `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (buffer_over_host_memory)`; `crates/metal2vulkan-runtime/src/buffer_descriptor.rs (rebind_host_pages)`; `crates/metal2vulkan-runtime/src/heap.rs (check_type)`; `crates/metal2vulkan-runtime/src/heap.rs (heap_with_token)`; `crates/metal2vulkan-runtime/src/heap.rs (max_available_size)`; `crates/metal2vulkan-runtime/src/heap.rs (new_buffer_at_offset)`; `crates/metal2vulkan-runtime/src/heap.rs (new_sparse_heap)`; `crates/metal2vulkan-runtime/src/heap.rs (no_copy_heap_with_token)`; `crates/metal2vulkan-runtime/src/heap.rs (past_end)`; `crates/metal2vulkan-runtime/src/heap.rs (placed_options)`; `crates/metal2vulkan-runtime/src/texture.rs (new_texture)`; `crates/metal2vulkan-runtime/src/texture.rs (plan_sparse_texture)`; `crates/metal2vulkan-runtime/src/texture/heap.rs (heap_offset)`
- `invalid::ResourceId`: `crates/metal2vulkan-runtime/src/resource_ids.rs (check_limit)`
@@ -950,7 +950,7 @@ Each refusal's sites, with the function that builds it.
- `subproblem::DrawProblem::PatchIndexBufferRange`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (check_patches)`; `crates/metal2vulkan-runtime/src/render.rs (check_patch_indices)`
- `subproblem::DrawProblem::ControlPointIndexBufferRange`: `crates/metal2vulkan-runtime/src/render.rs (check_control_point_indices)`
- `subproblem::DrawProblem::IndexBufferRange`: `crates/metal2vulkan-runtime/src/indirect_command_buffer.rs (draw_indexed_primitives)`
- `subproblem::RenderStateProblem::Count`: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`; `crates/metal2vulkan-runtime/src/render_state.rs (set_scissors)`
- `subproblem::RenderStateProblem::Count`: `crates/metal2vulkan-runtime/src/render_state.rs (check_count)`; `crates/metal2vulkan-runtime/src/render_state.rs (scissor_rects)`
- `subproblem::RenderStateProblem::ViewportNotFinite`: `crates/metal2vulkan-runtime/src/render_state.rs (set_viewports)`
- `subproblem::VisibilityProblem::NoBuffer`: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)`
- `subproblem::VisibilityProblem::OffsetOutOfRange`: `crates/metal2vulkan-runtime/src/visibility.rs (check_mode)`