From ef7af82fe4de4853b82d4b6133b6ce79c386d5a8 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 10 Nov 2026 05:56:21 -0800 Subject: [PATCH] Tile pipeline docs: name the translator's DescriptorError::ColorAttachment, which the nil-label check reads apart from a runtime Invalid refusal; the runtime-sources pin tests::error_kinds::no_refusal_documented_invalid_is_metal_s_nil failed at 814dea4a7e on every venue (Linux core, lavapipe, Iris, M3 gpucfg): pipeline/tile.rs's module doc named `InvalidDescriptor(ColorAttachment)` (from 83e5e06789, MetalAnswer) in a clause that says Metal answers nil, which the check reads as a runtime `Invalid` refusal of a Metal nil. The clause now names the translator's `DescriptorError::ColorAttachment` answering `MetalAnswer::NilWithError`, which it is; the runtime refuses it as `Compile`. Doc only; the pin follows (hash-only, no behaviour change). Verified: the check's clause rule replayed over the edited module doc finds nothing; the venues rerun. --- crates/metal2vulkan-runtime/src/pipeline/tile.rs | 10 +++++----- crates/metal2vulkan-validation/runtime-sources.sha256 | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/pipeline/tile.rs b/crates/metal2vulkan-runtime/src/pipeline/tile.rs index 2b3e9728a..a6f920961 100644 --- a/crates/metal2vulkan-runtime/src/pipeline/tile.rs +++ b/crates/metal2vulkan-runtime/src/pipeline/tile.rs @@ -6,11 +6,11 @@ //! ([`Kernel::Tile`]): the function compiles under the descriptor's color attachment formats, //! as `compile_tile_pipeline` compiles it, with a compute state's variants, stand-ins, memo, //! archives and disk cache. What the compile refuses is refused (`Compile`, `Unsupported`): -//! among it a function that reaches an attachment without a format in the descriptor -//! (`InvalidDescriptor(ColorAttachment)` answering `MetalAnswer::NilWithError`), where Metal's -//! creation answers nil and "Invalid pixel format for render target 0", and a member whose -//! type the attachment's format does not hold, which Metal's API validation stops (an M3 Max -//! and an M4). +//! among it a function that reaches an attachment without a format in the descriptor (the +//! translator's `DescriptorError::ColorAttachment`, answering `MetalAnswer::NilWithError`), +//! where Metal's creation answers nil and "Invalid pixel format for render target 0", and a +//! member whose type the attachment's format does not hold, which Metal's API validation stops +//! (an M3 Max and an M4). //! - **Answers.** A tile pipeline's state answers its descriptor's //! `threadgroup_size_matches_tile_size`, no indirect command buffers, and a //! `max_total_threads_per_threadgroup`. That is the threads of the descriptor's diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 1d0d98f95..4bf23a7e8 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -9e69563d30217bb663785fa95d5c5b1a6210a6c70b827c589f814f22490bff33 +3ed762ab0df2da48d1ceec1288baf5a28eb5b223c25a4a0a57242547e52d2c4a